A very simple example of how to run the wonderful JavaScript API for vega-lite using React. The key here is to create a wrapper component that uses an effect (for hooks), or componentDidMount (for regular components) to render the visualization.
Built with blockbuilder.org
forked from john-guerra's block: vega-lite JavaScript API browser example
https://cdn.jsdelivr.net/npm/vega@5.7.2
https://cdn.jsdelivr.net/npm/vega-lite@4.0.0-beta.10
https://cdn.jsdelivr.net/npm/vega-lite-api@0.1.0
https://unpkg.com/react@16/umd/react.development.js
https://unpkg.com/react-dom@16/umd/react-dom.development.js