2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00
Files
bbob/packages/bbob-react
Romain 7f931eee9a fix(#237): ensure types definitions presence in published packages (#238)
* fix(#237): Ensure types definitions presence in published packages

* Add changeset

---------

Co-authored-by: Romain d'Aversa <romain.daversa@cloud-solutions.fr>
2024-07-04 13:16:57 +02:00
..
2024-04-23 21:11:14 +02:00
2024-04-23 21:11:14 +02:00
2024-04-23 21:11:14 +02:00
2024-04-23 21:11:14 +02:00
2021-11-29 00:33:06 +02:00
2023-10-23 13:21:56 +02:00
2024-04-23 21:11:14 +02:00

@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]
`)