Via https://github.com/reactjs/react-rails
$ rails g react:component Appointments
is how to create the barebones component, rather than adding the jsx file yourself.
Syntax seems to have changed for the react_component helper function as well:
<%= react_component("Appointments") %>
Thanks!
Via https://github.com/reactjs/react-rails
$ rails g react:component Appointmentsis how to create the barebones component, rather than adding the jsx file yourself.
Syntax seems to have changed for the
react_componenthelper function as well:<%= react_component("Appointments") %>Thanks!