Generate react and react-native components.
~ npm install -g make-react-component
makeReact
is the starting command
See the full list of available templates here.
The program already guides you through the process with a prompt, making it easy to find a template and generate it with out having to know any command line arguments. However, what if you use the tool so often that you generate the same template or the same group of templates over and over again.
Get a list of templates that fit your filter selection. Filter is a waterfall approach so any template that matches any filter you pass in will show even if it doesn't match other filters.
makeReact [-f|--filter] [<web|mobile|class|func|js|ts|jsx|tsx>]
Example: makeReact -f native jsx
Generate templates just by using their template alias', bypassing the prompt all together.
makeReact [-t|--templates] [<template-alias>]
Example: makeReact -t react-fn-ts react-redux-toolkit-ts react-test-lib-jest-js
Learn how to contribute here