Skip to content

Commit 6d73d56

Browse files
committed
Fix incorrect path in readme#components.js
The example code looks like it will glob the files in app/assets/javascripts/components, but the paragraph says that it will glob the files in app/assets/components. I believe that this is a mistake, so this commit fixes this problem.
1 parent 3026fba commit 6d73d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ In order for us to render your React components, we need to be able to find them
125125
//= require_tree ./components
126126
```
127127

128-
This will bring in all files located in the `app/assets/components` directory. You can organize your code however you like, as long as a request for `/assets/components.js` brings in a concatenated file containing all of your React components, and each one has to be available in the global scope (either `window` or `global` can be used). For `.js.jsx` files this is not a problem, but if you are using `.js.jsx.coffee` files then the wrapper function needs to be taken into account:
128+
This will bring in all files located in the `app/assets/javascripts/components` directory. You can organize your code however you like, as long as a request for `/assets/components.js` brings in a concatenated file containing all of your React components, and each one has to be available in the global scope (either `window` or `global` can be used). For `.js.jsx` files this is not a problem, but if you are using `.js.jsx.coffee` files then the wrapper function needs to be taken into account:
129129

130130
```coffee
131131
###* @jsx React.DOM ###

0 commit comments

Comments
 (0)