Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-creates
Advanced tools
React creates for you useful and common tools that adapt themselves to your project for faster and easier development
Simple and easy to use react CLI.
React creates for you useful and common tools that adapt themselves to your project for faster and easier development
You can go to ways:
Write this in the terminal inside your react project:
npx react-creates component MyComponent
Will generate for you:
📦MyComponent
┣ 📜MyComponent.js
┣ 📜MyComponent.test.js
┣ 📜index.js
┗ 📜style.css
Try the VSCode extension
React Creates will support as many cases as it can, You need a use case it doesn't support? Please open issue.
You want to create flow for that use case? You are more than welcome! Learn how here.
Current features:
If you want to make sure all component will have the same features (styling, type, etc..), you can specify it in your package.json
For example:
{
"name": "my-project",
"version": "0.1.0",
...
"react-creates": {
"style": "scss"
},
...
}
React lets you define components as classes or functions. But why you need to write it every time? Here how to do create one in seconds:
npx react-creates component <name>
Option | Default | Type | Description |
---|---|---|---|
--scss | false | boolean | Force scss style |
--css | false | boolean | Force css style |
--sass | false | boolean | Force sass style |
-l --language <scripting> | Calculated (Checks for tsconfig to determent) | typescript or javascript | Select the language you want the component to be |
-d --directory <target> | process.cwd() | string | Component directory |
-t --type <component> | function or class | What type of the component it should be. | |
-pt --prop-types | false | boolean | Should add Prop-types. Only works if inside javascript project |
-f --function | false | boolean | Force function component |
-c --class | false | boolean | Force class component |
-s --style <styling> | css , scss , sass | Selected style | |
--skip-test | false | boolean | Will not create test file |
--skip-cache | false | boolean | Won't save cache values |
--ignore-cache | false | boolean | Won't use cache values |
npx react-creates component MyComponent
npx react-creates component MyComponent --type class
npx react-creates component MyComponent --style sass
npx react-creates component MyComponent -d /Users/project/cool-project
npx react-creates component MyComponent -l typescript
Please open an issue for support.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
FAQs
React creates for you useful and common tools that adapt themselves to your project for faster and easier development
We found that react-creates 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.