Skip to content

Commit 07ef6f9

Browse files
authored
Revise documentation for React component bundle loading
1 parent 47956e3 commit 07ef6f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/guides/file-system-based-automated-bundle-generation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,10 @@ For example, if you wanted to utilize our file-system based entrypoint generatio
194194
4. You no longer need to register the React components within the `ReactOnRails.configuration.components_subdirectory` nor directly add their bundles. For example, you can have a Rails view using three components:
195195

196196
```erb
197-
<% append_javascript_pack_tag('SpecialComponentNotToAutoLoadBundle') %>
198197
<%= react_component("FooComponentOne", {}, auto_load_bundle: true) %>
199198
<%= react_component("BarComponentOne", {}, auto_load_bundle: true) %>
199+
200+
<% append_javascript_pack_tag('SpecialComponentNotToAutoLoadBundle') %>
200201
<%= react_component("SpecialComponentNotToAutoLoadBundle", {}) %>
201202
```
202203

0 commit comments

Comments
 (0)