Unity – What are the best ways / tools to create a sophisticated snake game that will be hosted on React.js?

I'm trying to make a snake game with whimsical features such as cool animations and obstacles. I was looking to write the code in the beginning with React.js. But, ideally, I would use a motor like Unity and use it to deploy myself on the front end. Recommendations? Like Flashplayer ..?