# peerboard-react-components

> ```bash yarn add peerboard-react-components ``` or ```bash npm install peerboard-react-components ```

Latest version **0.0.0-development** (published 2020-05-19) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install peerboard-react-components
pnpm add peerboard-react-components
yarn add peerboard-react-components
bun add peerboard-react-components
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.0-development |
| Published | 2020-05-19 |
| First published | 2020-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=6.0.0 |
| Dependencies | 0 |
| Unpacked size | 228.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vladislav Lebedev |
| Maintainers | tonknaf |
| Keywords | forum, react, discussion, ui component, component |

## Links

- npm: https://www.npmjs.com/package/peerboard-react-components
- Repository: https://github.com/PeerBoard/react-components
- Homepage: https://github.com/PeerBoard/react-components#readme
- Issues: https://github.com/PeerBoard/react-components/issues
- npm.io page: https://npm.io/package/peerboard-react-components

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.0-development (latest) — 2020-05-19

## README

### Usage

```bash
yarn add peerboard-react-components 
```
or
```bash
npm install peerboard-react-components 
``` 

```jsx
<PeerboardForum
  style={{
    // Style the wrapper
  }}
  forumId={432432432} // Your board id from settings 
  prefix={'/community'} // Relative path at which the forum is rendered
  jwtToken={'...'} // Your integration bearer token from backend
  hideMenu={false} // Whether to hide standard menu or not
  onLoadFailed={() => {
    // Show error
  }}
  onLoadSuccess={() => {
    // Show forum. Note that in order to initialize forum should be rendered with 'display: none' for example. 
  }}
  onTitleChanged={title => window.document.title = "Forum: " + title} // Change your title accordingly
  onPathChanged={path => {
    // Browser counts iframe state changes.
    history.replaceState(null, '', path) // Update address bar. Provided prefix included.
  }}
/>
```

---
_Source: https://npm.io/package/peerboard-react-components · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
