Prism ICT

Default image

How to Update a React App on a Live Server (VPS) – The Easiest Way

Keeping your React app updated on a live server doesn’t have to be a headache. In this quick guide, I’ll

Default image

Redux reducer sample for React JS

// Import all types import * as Types from "../actions/types"; const init = { data: {}, pagination: {}, error: {},

Default image

Export ‘WithRouter’ is not exported from ‘react-router-dom’

This is a very common error on react-router-dom v6, Because of withRouter not working anymore on this version. With useNavigate

Default image

React JSX repeat or loop a component

Simple use the below code to repeat a component for X times { [...Array(8)].map((e, i) => <span className="className" key={i}>Contennt here</span>)