calreact icon indicating copy to clipboard operation
calreact copied to clipboard

current react-rails gem: can't simply create appointments.jsx, have to generate components

Open starpause opened this issue 7 years ago • 0 comments

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!

starpause avatar Feb 16 '18 00:02 starpause