A BBCode to React Renderer part of @bbob
npm install @bbob/react> Converts @bbob/parser AST tree to React
``shell`
npm i @bbob/react @bbob/preset-react
`jsx
import React from 'react'
import BBCode from '@bbob/react';
import presetReact from '@bbob/preset-react';
const plugins = [presetReact()];
export default () => (
[table]
[tr]
[td]table 1[/td]
[td]table 2[/td]
[/tr]
[tr]
[td]table 3[/td]
[td]table 4[/td]
[/tr]
[/table]
)
`
`jsx
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])``