14 lines
		
	
	
	
		
			437 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			437 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| Description:
 | |
|     Explain the generator
 | |
| 
 | |
| Example:
 | |
| 
 | |
|     rails generate react:component name
 | |
| 
 | |
|     This will create:
 | |
|         Creates a new React component named Name in javascripts/component/name.ts along with a corresponding Jest test
 | |
| 
 | |
|     rails generate react:component parent_dir/name
 | |
| 
 | |
|     This will create:
 | |
|         Creates a new React component named Name in javascripts/component/parent_dir/name.ts along with a corresponding Jest test
 | 
