
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
generator-comp-react
Advanced tools
Command line tool for React / React Native to generate components
React generator is a simple command line tool to generate React and React Native components, including stateless components and redux connected components, and redux containers.
npm install -g generator-comp-react
or
yarn global add generator-comp-react
generator-comp-react [options...]
-H or --help
: displays the usage--componentPath
: defaults to ./src/components
. Root folder of the components location.--containerPath
: defaults to ./src/containers
. Root folder of the containers location.--functional=true|false
: defaults to false
. If true, creates a functional component.--pure=true|false
: defaults to true
. If true, extends PureComponent instead of Component.--container=true|false
: defaults to false
. If true, creates a redux connected component. The functional
option won't be used in that case. Creates the associated component in the componentPath
location.--withRedux=true|false
: defaults to false
. If true, connect the component with redux. Defaults to true
when container
is true
--native=true|false
: defaults to false
. If true, imports the basic stuff from react-native (View, StyleSheet), renders a View instead of a div, and creates a basic StyleSheet. When native is false, a separate css file is created.--name=ComponentName
: defaults to MyComponent
. Sets the component name. When container
is set to true, will automatically suffix the name with Container
, so for example MyAwesomeComponent
will transform into MyAwesomeComponentContainer
.--withPropTypes=true|false
: defaults to true
. If set to true, imports the prop-types package and add the propTypes
and defaultProps
fields to the component.--separateDir=true|false
: defaults to true
. If set to true, will create a folder with the component's name, with an index.js, the component's file and its css (if not native). If set to false, will just create the component's file and its css into the componentPath
folder.Note: passing an option without any value will be considered as a true
value if it can evaluate to true, for example --withPropTypes
is the same as --withPropTypes=true
but --componentPath
wont update the componentPath
value.
FAQs
Command line tool for React / React Native to generate components
We found that generator-comp-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.