react-json2d

A React thin wrapper of json2d library

Usage no npm install needed!

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

README

react-json2d

React library to use json2d library.

Props

  • children (required): the json2d data format object.
  • width (required): width of the canvas.
  • height (required): height of the canvas.
  • ratio: the pixel ratio to use. default is window.devicePixelRatio.