mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-20 20:00:33 +03:00
chore(react): add more info to readme
This commit is contained in:
@@ -1,9 +1,21 @@
|
|||||||
# @bbob/react
|
# @bbob/react
|
||||||
|
|
||||||
|
```js
|
||||||
|
import BBCode from '@bbob/react';
|
||||||
|
import presetHTML5 from '@bbob/react/lib/preset-html5';
|
||||||
|
|
||||||
|
const plugins = [presetHTML5()];
|
||||||
|
|
||||||
```jsx
|
<BBCode plugins={plugins}>
|
||||||
|
[table]
|
||||||
<BBCode preset={myPresetHTML5}>{bbcodeString}</BBCode>
|
[tr]
|
||||||
|
[td]table 1[/td]
|
||||||
|
[td]table 2[/td]
|
||||||
|
[/tr]
|
||||||
|
[tr]
|
||||||
|
[td]table 3[/td]
|
||||||
|
[td]table 4[/td]
|
||||||
|
[/tr]
|
||||||
|
[/table]
|
||||||
|
</BBCode>
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user