This is why I started disliking REACT.

const [name, setName] = useState(‘’);
setName(‘Ishwar’);
let name = ‘’;
name = ‘Ishwar’;

--

--

--

I write articles on JavaScript, electron, and react. Opted for curators for better reach, not money. Open link in incognito to read for free (or contact me)

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Props in React Components

Let’s Implement A Simple Event Listener In APIM

It's all about Error

Refactoring With Function Nesting

Robot doing a one-handed hand stand with the words “Function Nesting” nested between his raised arm and leg.

How to Build a Counter Using Redux

React, ES6, JSX, Babel …

Updating React Native Major Version

Upgrade are scary, never cute :-(

Spreading, Resting, and Renaming Properties in TypeScript

Android “rest”ing against fresh batteries with legs “spread” out.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ishwar Rimal — @theHumbleBeing

Ishwar Rimal — @theHumbleBeing

I write articles on JavaScript, electron, and react. Opted for curators for better reach, not money. Open link in incognito to read for free (or contact me)

More from Medium

The useEffect hook in React 18

Storage API in Javascript

The tricky behavior of useEffect hook in React 18

Banner Imag eThe tricky behavior of useEffect hook in React 18

React Refs: The Difference Between useRef and createRef Made Easy