write-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i write-react

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

2.25 kB

Total Files

4

Last publish

Collaborators

  • masahiroike