Tag: React JS

How to Import Images in React

How to import an image in React JS project. Using an image in React App code. Read more »

React JS: Create utility functions formatting currency

How to format currency in React JS App. Create Utility functions in React app for formating the currency data for shopping cart apps etc.... Read more »

React JS: Import and use JSON data from .json File

How to import JSON file data in React JS APP. Get data from json file and render inside react component example code. data/items.json [... Read more »

Fix: Cannot read properties of null (reading ‘map’)

React JS map function throwing error cannot read properties of null solution. How to fix map function null error in React JS. If the... Read more »

Composition in React JS – Example

Example of composition in React JS App. Adding children for a React component. Rendering component children using props.children in react. Use of props.children in... Read more »

REACT JS – Axios API Fetching Example Code

How to fetch API data in React JS using Axios and store it in the state variable. In the example code below we are... Read more »

Upload React Project to GitHub – push to repo

How to upload React JS project to GitHub repository. Push react app to GitHub repo steps. Github commands for pushing react project to a... Read more »

React JS: Cannot read property Error

Condition check if the object has property and render the output. Cannot read property of the object in react js - error solution. Avoid... Read more »

React JS: Form Validation

How to validate Forms in React Apps. npm packages that help for form validation. Form validation code for React apps - email, password validation... Read more »