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 4ab06bed08 Publish
- @bbob/cli@1.0.8
 - @bbob/core@1.1.1
 - @bbob/html@1.1.1
 - @bbob/parser@1.3.1
 - @bbob/plugin-helper@1.1.1
 - @bbob/preset-html5@1.1.1
 - @bbob/preset-react@1.1.1
 - @bbob/preset@1.1.1
 - @bbob/react@1.1.1
2018-09-09 23:56:22 +02:00
..
2018-08-09 02:46:35 +02:00
2018-09-09 23:56:22 +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]
`)