Skip to content

Bash script for creating react classes and functions based on arguments

Notifications You must be signed in to change notification settings

WSINTRA/newComp_bash_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

newComp bash script.

Bash script for creating react components.

./newComp component_name component_type

Component type can be class or func. example./newComp login class.

Will produce a new file called login.js with basic code for React class component.

To add into your workflow; edit your .bashrc file in your ~/home dir and use the following.

alias newComp="/DIRECTORY_OF_BASH_FILE/newComp.sh"

Then run $source ~/.bashrc To reload the bash profile and you can use the script anywhere with

$newComp someFunction func or $newComp someClass class

About

Bash script for creating react classes and functions based on arguments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages