@kurone-kito/react-to-html-practice

Experiment: (json: object) =[React]=> (single html string)

Usage no npm install needed!

<script type="module">
  import kuroneKitoReactToHtmlPractice from 'https://cdn.skypack.dev/@kurone-kito/react-to-html-practice';
</script>

README

@kurone-kito/react-to-html-practice

npm version

Experiment: (json: object) =React=> "<html />"

Usage

const { render } = require('@kurone-kito/react-to-html-practice');
const html = render({ foo: 'bar' });
console.log(html); // <DOCTYPE html><html>...</html>

API

  • render(param)

Render HTML.

  • The argument can be an object or an array.
  • The return value is HTML with embedded arguments and ReactJS.

Alias: default

Develop

npm install
npm start

The browser starts and monitors changes in files under src/*.