quokka-plugin-sharp-pad-react

0.1.4 • Public • Published

quokka-plugin-sharp-pad-react

In your quokka configuration, you need to specify the plugins in this order:

"plugins": [
  "quokka-plugin-sharp-pad-react",
  "quokka-plugin-sharp-pad"
]

Otherwise ReactDOM will complain about some prototype injections that the plugins do.

After you get it to run you are free to dump react components to your output. You do not need to put React in scope because the plugin already defines it as a global.

dump(<div>Hello World!</div>)

/quokka-plugin-sharp-pad-react/

    Package Sidebar

    Install

    npm i quokka-plugin-sharp-pad-react

    Weekly Downloads

    2

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    2.61 kB

    Total Files

    5

    Last publish

    Collaborators

    • edongashi