@bbob/react

3.0.2 • Public • Published

@bbob/react

install size Known Vulnerabilities

Converts @bbob/parser AST tree to React

npm i @bbob/react @bbob/preset-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]
`)

Dependents (1)

Package Sidebar

Install

npm i @bbob/react

Weekly Downloads

843

Version

3.0.2

License

MIT

Unpacked Size

18.3 kB

Total Files

13

Last publish

Collaborators

  • jilizart