mirror of
https://github.com/tenrok/BBob.git
synced 2026-05-15 11:59:37 +03:00
5904ef46ed
chore(release): release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@bbob/react
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]
`)