#es6
Read more stories on Hashnode
Articles with this tag
A middleware function is a function that takes a request object and returns a response to the client or passes control to another middleware...
Validating without using any package app.post("/api/courses", (req, res) => { if (!req.body.name || req.body.name.length < 3) { ...
meth1 import { useState, useRef } from 'react'; import classes from './AuthForm.module.css'; const AuthForm = () => { const [isLogin,...
With useSelector() , returning a new object every time will always force a re-render by default. useSelector sets up a subscription to Redux. So...
No matter whether we create a copy with slice(), with the spread operator, or with Object.assign: we will always create a shallow copy, no deep...
https://redux.js.org/tutorials/fundamentals/part-8-modern-redux#immutable-updates-with-immer Redux requires that we write all state updates immutably,...