React Create Component
A plugin for creating React Components in Sublime Text 2 and 3.
Details
Installs
- Total 6K
- Win 4K
- Mac 938
- Linux 1K
| Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Readme
- Source
- raw.githubusercontent.com
Sublime - React Create Component
A plugin for creating React Components in Sublime Text 2 and 3.
This plugin adds a context menu to Sublime's side bar that makes it simple to create a React Component in a parent folder. Simply give the component a name and answer the prompts, then a folder is created inside the parent with:
parent/
|-- ComponentName/
|---- index.js
|---- style.less
The stylesheet extension can be chosen from .css, .less, .scss, or
.sass, and can optionally include *.module.* (for css-modules)
automatically.
The index.js file can be a Functional or Class component and will
contain some helpful skeleton code.
Installation
With Package Control:
1. Run “Package Control: Install Package” command
2. Find and install React Create Component plugin
3. Restart Sublime Text (if required)
Manually: 1. Clone or download this git repo into your packages folder (click Browse Packages to open this folder) 3. Restart Sublime Text (if required)
Usage
Whenever you need to create a new component, just right click on the base folder and select Create React Component. It will:
- Ask for a component type (select, then press
ENTER) - Ask for a stylesheet type (select, then press
ENTER) - Ask if you want CSS Modules enabled (select, then press
ENTER) - Ask for a component name (type, then press
ENTER) - Create a new folder for the component with the given name
- Add an
index.jsfile with skeleton code
- Add an
- Add a stylesheet based on the given preferences
More Info and Bug Tracking
You can get the latest code, make suggestions or report bugs at https://github.com/acsands13/sublime-react-create-component/issues.
Based off Python Create Package by curaloucura.