const [fullName, setFullName] = useState('');
useEffect(() => {
setFullName(`${props.firstName} ${props.lastName}`);
}, [props.firstName, props.lastName]);
It seems harmless, but it can create cascade renders:
#React #FrontEnd
"Boardssey has helped me by giving me so many tools that make it possible to complete 'boilerplate' processes."
@moonsagaws.bsky.social
#boardgamedesign #tabletopgames #indiegames #gamedesign
"Boardssey has helped me by giving me so many tools that make it possible to complete 'boilerplate' processes."
@moonsagaws.bsky.social
#boardgamedesign #tabletopgames #indiegames #gamedesign