2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00
Files
bbob/packages/bbob-react
Greg Venech 19d7ff20f1 fix(react): fix broken prop type definition (#27)
You need to pass a valid prop checking function to `PropTypes.arrayOf`. This caused
an error to be thrown in development for me:

```
Warning: Failed prop type: Unexpected token function
```
2019-06-28 10:00:35 +02:00
..
2019-06-18 09:56:21 +02:00
2019-06-18 09:56:21 +02:00

@bbob/react

import React from 'react'
import BBCode from '@bbob/react';
import presetReact from '@bbob/preset-react';

const plugins = [presetReact()];

export default () => (
    <BBCode plugins={plugins}>
    [table]
      [tr]
          [td]table 1[/td]
          [td]table 2[/td]
      [/tr]
      [tr]
          [td]table 3[/td]
          [td]table 4[/td]
      [/tr]
    [/table]
    </BBCode>
)
import { render } from '@bbob/react'

export default () => render(`
[table]
  [tr]
      [td]table 1[/td]
      [td]table 2[/td]
  [/tr]
  [tr]
      [td]table 3[/td]
      [td]table 4[/td]
  [/tr]
[/table]
`)