observablehq / examples

Examples of using Observable in a variety of contexts
108 stars 33 forks source link

Documentation on how to reproduce the react-dataflow example. #20

Closed artidataio closed 2 years ago

artidataio commented 2 years ago

Hi, I want to mix react's state with my observable notebook it seems that the following file is a good example for that: https://github.com/observablehq/examples/tree/main/react-dataflow. However, there is no clear instructions on how to reproduce the live example. I have tried to use the approach on https://github.com/observablehq/examples/tree/main/react-create-react-app/#readme. However, I still can't reproduce it.

artidataio commented 2 years ago

Well, I managed to reproduce it manually. The key was to simply to start from create-react-app, embed noteboook with React. Follow the following files closely: App.js, BrushableScatterplot.js