mirror of
https://github.com/tenrok/BBob.git
synced 2026-05-15 11:59:37 +03:00
chore(react): add more info to readme
This commit is contained in:
@@ -1,9 +1,21 @@
|
||||
# @bbob/react
|
||||
|
||||
```js
|
||||
import BBCode from '@bbob/react';
|
||||
import presetHTML5 from '@bbob/react/lib/preset-html5';
|
||||
|
||||
const plugins = [presetHTML5()];
|
||||
|
||||
```jsx
|
||||
|
||||
<BBCode preset={myPresetHTML5}>{bbcodeString}</BBCode>
|
||||
|
||||
<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>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user