2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00
Files
bbob/packages/bbob-react
Nikolay Kostyurin c5aa4f08d1 Publish
- @bbob/cli@2.0.2
 - @bbob/core@2.0.2
 - @bbob/html@2.1.1
 - @bbob/parser@2.2.0
 - @bbob/preset-html5@2.1.1
 - @bbob/preset-react@2.0.2
 - @bbob/react@2.0.2
2018-10-07 22:27:07 +02:00
..
2018-10-07 22:27:07 +02:00
2018-10-07 22:27:07 +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]
`)