We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5da111 commit 8423348Copy full SHA for 8423348
README.md
@@ -114,6 +114,12 @@ $ rails g react:component my_subdirectory/HelloWorld greeting:string
114
```
115
Note: Your component is added to `app/javascript/components/` by default.
116
117
+Note: If you generated into a subdirectory you will append the directory path to your erb component call.
118
+
119
+Example:
120
+```
121
+<%= react_component("my_subdirectory/HelloWorld", { greeting: "Hello from react-rails." }) %>
122
123
124
##### 7) [Render it in a Rails view](#view-helper):
125
0 commit comments