houdini/lib/generators/react/packroot/USAGE

10 lines
321 B
Text
Raw Normal View History

2018-03-29 19:10:27 +00:00
Description:
Used for generating a new packroot for a page on Webpack
Example:
rails generate react:packroot Name
This will create:
A file named javascripts/app/name.ts which refers to a newly created component at
javascript/src/components/name/name.tsx (uses the react:component generator)