Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 708 Bytes

README.md

File metadata and controls

56 lines (36 loc) · 708 Bytes

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>