This is an illustration of how to use Vega specs to create a chart, while managing state with React and interactivity with the Vega View API. See the application here https://vega-react-hooks.netlify.com/.
Clone this repo and run:
yarn && yarn start
This should start a development server at http://localhost:3000/
.