Where should i put this ?
Žarko Milošević

Hi Žarko Milošević, you have to put that in the view where you want to render the React component. The example above is for a HAML view, but I’ve updated the post to also show how to do it in an ERB view.

All the code for this example app is on Github — https://github.com/learnetto/calreact/tree/lesson-4.5

Like what you read? Give Hrishi Mittal a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.