A VScode extension to generate React components from snippets based on React classes or React functions with their tests.
If you are in a directory called MyReactProject:
/header.tsx will generate a component in MyReactProject/header.tsx
If you want a nested one you can provide the path
/header/header.tsx generates a component in MyReactProject/header/header.tsx
NOTE: If the directory doesn't exist React Arch will generate it.
You can set your own config.
To override the snippets you can modify the corresponding JSON array with this syntax:
Each line of the array is a line in the generated snippet.
Tabs and spaces are allowed.
To insert a line break add an empty array item.
If you want to insert the component name variable use