write-react

elementを指定することなく、reactをrenderします htmlファイルでreactを使いたい人向けのプログラムです https://github.com/masahiroike/write-react

Usage no npm install needed!

<script type="module">
  import writeReact from 'https://cdn.skypack.dev/write-react';
</script>

README

write react

elementを指定することなく、reactをrenderします htmlファイルでreactを使いたい人向けのプログラムです https://github.com/masahiroike/write-react

install

  1. npm install
# shell command line
npm install write-react
  1. import this
# index.tsx
import writeReact from 'write-react';
window.writeReact = writeReact;
  1. execute example
# index.html
<script>writeReact(ExampleComponent, {className: 'exampleClassName'}, ...ExampleChildElement)</script>