An atom plugin to generate a most common react/react-native folder structure and template files
Install with apm install atom-react-component-folder
or use Install Packages from Atom Settings.
Using the TreeView, Right click on any directory to expose the Create a component folder option. Selecting this option will open a modal that will allow you to enter component name. Pressing Enter Key will create a react/react-native component with template code.
HelloWorld
- index.js
- styles.js
- styledComponents.js
- HelloWorld.story.js
- HelloWorld.test.js
Note: After working on few projects, we realised that the above component structure is flexible and maintainable.
- Please open an issue before submitting a PR
- All PR's should be accompanied wth tests 🚀