Thank you !
Thanks for asking, I am interested in this question as well!
When there was a simple way to integrate react JS into Jupyter, that would open the door to many widgets, e.g. a https://www.tldraw.com/ based image annotation tool.
If you want bi-directional communication between js and python, you want to develop this as a ipywidget extension. GitHub - jupyter-widgets/widget-cookiecutter: A cookiecutter template for creating a custom Jupyter widget project. or GitHub - jupyter-widgets/widget-ts-cookiecutter: A highly opinionated cookiecutter template for ipywidget extensions. may help you get started.
However, I also have a need for this, and often want to just cobble up a small react component together. Similar to how we’ve done Template Usage — ipyvuetify 1.2.2 documentation I think we should create a library that takes a file input, and compiles the jsx on the frontend using the sucrase library, so it doesn’t need any build tools.
Curious what you think of this idea.