
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@benyap/react-template-generator
Advanced tools
Don't work harder, work smarter.
A simple CLI tool used to help scaffold React components from custom templates for your project = efficiency and consistency.
Use Node 10.
Install the package:
yarn add -D @benyap/react-template-generator
Create a configuration file in your project root called reactgenconfig.json
. Learn how to configure it.
Create your templates in your project root in a folder called templates
. Learn how to create templates.
Run a simple command* to generate your component.
yarn reactgen <name>
* If using npm
, as this to your package.json
:
{
"scripts": {
"reactgen": "reactgen"
}
}
and use npm run reactgen <name>
to generate your component.
See an example configuration here. Treat the example
folder as the project root.
From Plop:
Because when you create your boilerplate separate from your code, you naturally put more time and thought into it.
Because saving your team (or yourself) 5-15 minutes when creating every route, component, controller, helper, test, view, etc... really adds up.
Because context switching is expensive and saving time is not the only benefit to automating workflows.
FAQs
Template generator for React projects.
We found that @benyap/react-template-generator 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.