Hoist your prop types to the top of a file for readibility
Project description
hoist-prop-types
=========
A codemod that will hoist prop types and default props to the top of the file. Currently only
works with files with one component.
Install
-----------
```
pip install hoist-prop-types
```
Usage
----------
```
hoist-prop-types ./my/dir/
```
This will read all `.js` and `.jsx` files and try to hoist the prop types to the top.
=========
A codemod that will hoist prop types and default props to the top of the file. Currently only
works with files with one component.
Install
-----------
```
pip install hoist-prop-types
```
Usage
----------
```
hoist-prop-types ./my/dir/
```
This will read all `.js` and `.jsx` files and try to hoist the prop types to the top.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hoist-prop-types-0.1.0.tar.gz
(2.7 kB
view hashes)