Author: pawan
-
React – iterate from array
example you have an array of products in data.js then you can use the code in app.js to iterate over this using map function like below, when you just type data inside curly braces, it should prompt you to import data.js in app.js.Else you should manually import data.js like below:import data from “./data”; Note: when…
-
Create new react Application
npx create-react-app {appname} note about npx: NPX stands for Node Package eXecute. It is simply an NPM package runner. It allows developers to execute any Javascript Package available on the NPM registry without even installing it. NPX is installed automatically with NPM version 5.2.note about npx: NPX stands for Node Package eXecute. It is simply…