Huge News!Announcing our $40M Series B led by Abstract Ventures.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
  • Socket score

Version published
Maintainers
2
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc