Crates.io | crf |
lib.rs | crf |
version | 0.1.2 |
source | src |
created_at | 2020-11-15 23:29:37.668829 |
updated_at | 2020-11-17 02:00:50.214392 |
description | A tool to generate react component boilerplate |
homepage | https://github.com/13sfaith/mrf |
repository | https://github.com/13sfaith/mrf |
max_upload_size | |
id | 312720 |
size | 183,156 |
A Simple React Component Creator
Explore the docs »
Report Bug
·
Request Feature
To get a local copy up and running follow these simple steps.
To build your own verison of this script you will need.
# if you use rustup update rust using:
rustup update
git clone https://github.com/13sfaith/crf.git
cargo build --release
./crf/target/release
Create a react component either class or function (default class)
USAGE:
crf [OPTIONS]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
-t, --type
ARGS:
An example use case would be:
This would create a js file named "Example.js" in the current working directory The file would contain a boilerplate class file that would look like:
The default behavior of the tool is to create a class, however if you would like to make a functional component we've got you covered.
Simply use the function tag as such:
This will create a js file named "Example.js" with the following boilerplate:
Happy Hacking!
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
Fork the Project
Create your Feature Branch (git checkout -b feature/AmazingFeature
)
Commit your Changes (git commit -m 'Add some AmazingFeature'
)
Push to the Branch (git push origin feature/AmazingFeature
)
Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Spencer Faith - @13sfaith - 13sfaith@gmail.com
Project Link: https://github.com/13sfaith/crf