Skip to content

Commit b0415e3

Browse files
committed
add linking javascript pack to readme
1 parent 24d8885 commit b0415e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ This gives you:
7272
- [`ReactRailsUJS`](#ujs) setup in `app/javascript/packs/application.js`
7373
- `app/javascript/packs/server_rendering.js` for [server-side rendering](#server-side-rendering)
7474

75+
Link the JavaScript pack in Rails view using `javascript_pack_tag` [helper](https://github.com/rails/webpacker#usage), for example:
76+
```
77+
<!-- application.html.erb -->
78+
<%= javascript_pack_tag 'application' %>
79+
```
80+
7581
Generate your first component:
7682

7783
```

0 commit comments

Comments
 (0)