An example of a WordPress plugin that supports rendering a react component on the block editor as well as on the frontend, and also how to add a sidebar to the block editor for any post or page using the Gutenberg block editor.
To build, execute npm install && composer install && npm run build
.