I have my rails 6 app using asset pipeline. Now in one module, I want to integrate react and for that I installed webpacker. After rails webpacker:install
and rails g react:install
, I created one component in app/javascipt/components directory. From my rails view, I called react component which I just created like <%=react_component('name')%>
. But in my browser I get these errors, ss is attached for reference.
Asked
Active
Viewed 32 times
0

Muhammad Ans
- 157
- 8