2.2.1 • Published 1 year ago
@s247kim/react-tools v2.2.1
Opinionated React Template Generating Tool
Prerequisite
The tool is written with an assumption of using React with Typescript and sass support.
If your React package missing Typescript or sass, the template generated from this tool will NOT be compatible.
Install
npm install -g @s247kim/react-toolsnew command named
react-toolsregistered globally
or install locally
npm install -D @s247kim/react-toolsUsage
If
react-toolsis not recognized try to usenpx @s247kim/react-toolsGenerate Component
The component name can be a camel case, pascal case, or separated by a space, hypen or underscore.
react-tools gen-comp "[component name]"Generating shared component example
react-tools gen-comp -s "[component name]"
Generate Context
The context name can be a camel case, pascal case, or separated by a space, hypen or underscore.
react-tools gen-context "[context name]"