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 e3c2a2f4dd Publish
- @bbob/cli@2.0.0
 - @bbob/core@2.0.0
 - @bbob/html@2.0.0
 - @bbob/parser@2.0.0
 - @bbob/plugin-helper@2.0.0
 - @bbob/preset-html5@2.0.0
 - @bbob/preset-react@2.0.0
 - @bbob/preset@2.0.0
 - @bbob/react@2.0.0
2018-09-18 23:50:16 +02:00
..
2018-08-09 02:46:35 +02:00
2018-09-18 23:50:16 +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]
`)