New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@digital-wafa/react-generator

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digital-wafa/react-generator

react components generator

1.3.2
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

wafa react generator config

react-generator npm version

A shared react components generator to use in digital wafa projects

Installing

npm i -g @digital-wafa/react-generator

Generate a reusable component

rg-component

Configuration

Create a react-generator-config.js at the root of your project to override default config.

Default configuration

module.exports = {
  projectName: 'default',
  typescript: true
};

This generator allows to create two kind of React components (Smart & Dump)

Component folder structure :

index.{ts|js}
<Component name>.module.css
<Component name>.test.js
<Component name>.{tsx|jsx}

Container folder structure :

index.{ts|js}
<Component name>.module.css
<Component name>.slice.{ts|js}
<Component name>.saga.{ts|js}
<Component name>.{tsx|jsx}
Tests/<Component name>.test.js

FAQs

Package last updated on 28 Dec 2020

Did you know?

Socket

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.

Install

Related posts