Skip to content

elifnurkarakoc/plop-react-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PLOP REACT GENERATOR

Built With

Installation

Clone the repo

git clone https://github.com/elifnurkarakoc/plop-react-generator.git

Install NPM packages

npm install

Use

Create Component

npm run generate component componentName

Create Context API

npm run generate context-api contextName

After the Context API is created, you must add it to index.js.

Example:

import { AuthProvider } from "./Contexts/AuthContext";

.
.
.

<AuthProvider>
  <App />
</AuthProvider>