Skip to content

hawkgs/react-schematics-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-schematics-demo

A simple demo of a Schematic which generates a React component.

Usage

  1. Build the Schematic via npm run build
  2. Run the Schematic via npm run gen -- --path=<RELATIVE_PATH> --name=<NAME>

Schematic options

  • path (required) - relative; where the component is created/generated
  • name (required) - name of the component; will be converted to Pascal case automatically
  • className - specifies a custom class name for the main element of the component
  • functional - if set to true, the generator will create a functional component instead of a class-based one
  • pure - whether the generated component must be a PureComponent or not

About

A simple demo of a Schematic which generates a React component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published