
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600Ć Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600Ć faster than humans.
react-create-helper
Advanced tools
create components, reducers and actions, does not overwrite, make your own templates
CLI tool to help with creating components, reducers and actions.
#####Create react-* with predefined templates
npm i -g react-create-helper
Add new string to package.json
with name "react-create-helper"
base
(string) - Base dir for components, actions, and reducers. Default - project root (./
)actionsDir
(string) - Base dir for actions, extends base
. Default - project root (./
)reducersDir
(string) - Base dir for reducers, extends base
. Default - project root (./
)styleExtension
(string) - Extensions for generated style file. Default - css
componentName.prepend
(string) - Prefix for generated component. Default - undefined
componentName.append
(string) - Suffix for generated component. Default - undefined
template.component
(string) - Path for your own component template. Default - undefined
template.reducer
(string) - Path for your own reducer template. Default - undefined
template.action
(string) - Path for your own action template. Default - undefined
"react-create-helper": {
"base": "./src",
"actionsDir": "Actions",
"reducersDir": "Reducers",
"componentName": {
"prepend": "My",
"append": "Component"
},
"styleExtension": "scss"
}
Cli options
-c
generate component (default)-r
generate reducer-a
generate action-m
generate module-h
help (options and usage examples)rch Header
output
Header
āāā Header.js
āāā Header.scss
āāā index.js
Also you can specify path like rch my/path/Header
$ rch -ar ExampleAction
This will generate something like this
src
āāā Actions
ā āāā ExampleAction.js
āāā Reducers
āāā ExampleReducer.js
$ rch -m ExampleModule
This will generate something like this
ExampleModule
āāā ExampleModule.js
āāā ExampleModule.scss
āāā index.js
āāā redux
āāā reducers.js
āāā actions.js
āāā constants.js
"react-create-helper": {
"template": {
"component": "rch_templates/component.js",
"reducer": "rch_templates/reducer.js",
"action": "rch_templates/action.js",
},
}
######Base template
{basename}
is the name you provided with rch -c {basename}
./rch_templates/component.js
module.exports = ({basename}) =>
`import React, { Component } from 'react';
import { connect } from 'react-redux';
class ${basename} extends Component {
render() {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {
}
};
const mapDispatchToProps = (dispatch) => {
return {
exampleName: (exampleProps) => {
dispatch(exampleActionName)
}
}
};
export default connect(mapStateToProps, mapDispatchToProps)(${basename});
`;
The same for action, and reducer.
######Have fun
FAQs
create components, reducers and actions, does not overwrite, make your own templates
We found that react-create-helper 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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600Ć faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.