In this article, we will see how to pass data as props or properties to a component in React.js and how to access the data inside the component. 1. Pass data as props to React Component Syntax to pass data to React Component is as follows : ComponentName propertyName=“propertyValue” Properties can be accessed in React […]
Category: Reactjs
Create React Hello World App
In this article, we will see how to create a simple React Hello World app. React Local Environment Setup We will be setting up react using Node.js. For this, first check if a recent version of Node.js is installed. $ node -v v10.13.0 $ npm -v 6.4.1 To create a new react app […]