Use useEffect to run code after render:
useEffect(() => {
// fetch data or run logic
}, []);
It acts like componentDidMount 🧲
✅ Great for API calls, DOM events & timers.
Keep logic clean & reactive! 💡
#ReactJS #Hooks #Frontend #WebDev #amankureshi #amankureshiFrontend #kureshiaman
Use useEffect to run code after render:
useEffect(() => {
// fetch data or run logic
}, []);
It acts like componentDidMount 🧲
✅ Great for API calls, DOM events & timers.
Keep logic clean & reactive! 💡
#ReactJS #Hooks #Frontend #WebDev #amankureshi #amankureshiFrontend #kureshiaman
Want a smooth hover effect?
button {
transition: all 0.3s ease;
}
✨ It adds sleek animations to color, size, shadow, and more.
Pro Tip: Pair with :hover to create interactive UI!
Make your UI feel alive! ⚡
#CSS #Frontend #WebDesign #UIUX #amankureshi #amanFrontend #kureshiaman
Want a smooth hover effect?
button {
transition: all 0.3s ease;
}
✨ It adds sleek animations to color, size, shadow, and more.
Pro Tip: Pair with :hover to create interactive UI!
Make your UI feel alive! ⚡
#CSS #Frontend #WebDesign #UIUX #amankureshi #amanFrontend #kureshiaman