Optimizing React Performance with Lazy State Initialization
Before understanding react lazy state initialization, let's first understand states in React.
Let's take an example. I have a counter app with two states.
count state
data state
import React, { useState } from 'react'
const Counter = () => {
...
blog.siddhantbobde.com3 min read