React ArchA VScode extension to generate React components from snippets based on React classes or React functions with their tests. Usage
ExampleIf 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. Custom configYou can set your own config.
Overriding snippetsTo 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 |