IT

 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 

 

 






 







 


IT

 

 

AI  

 

 






 







 


 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 






 







 


 

Web  

 

 

PlayStation  

 

YouTuber  

 





 

 





 

 

 












React Journey  

3users  
alexsidorenko.com  


function App() { const [count, setCount] = useState(1); useEffect(() => { const t = setTimeout(() => { console.log(count); }, [count * 1000]); return () => clearTimeout(t); }, [count]); return ( <button onClick={() => setCount(count + 1) } > {count} </button> ); } function App() { const [count, setCount] = useState(1); useEffect(() => { const t = setTimeout(() => { console.log(count); }, [count *



 

2023/05/11 12:12
 



















A Visual Guide to useEffect  

164 users  
alexsidorenko.com  


Here is what happens when you try to fetch data directly from the body of a functional component in React 👇 Why does this happen and what tools does React offer to solve this problem? Side effects If your React component affects anything outside of itself, its called a side effect. Side effects shouldnt happen during component render. Therefore they do not belong to the body of a functional com



 

2021/12/07 19:17
 





























A Visual Guide to React Rendering - Cheat Sheet  

210 users  
alexsidorenko.com  


When does react component re-render? What can cause the re-render, and how to prevent unnecessary renders? Here is a quick cheat sheet you can refer to whenever you find yourself asking these questions. This article serves as a table of contents for a Visual Guide to React Rendering series. Every section of the cheat sheet links to the correspondent chapter of the guide that explores a topic in de



 

2021/10/19 19:14
 

















 











A Visual Guide to React Rendering - useMemo  

3users  
alexsidorenko.com  


This is a 3rd chapter of "A Visual Guide to React Rendering". Check out previous chapters: It always re-renders and Props A quick quiz: Child wrapped with memo. When the user role is Admin, we want to pass an option to the Child to show a sidebar. However, the Child re-renders even when we change the user name. How do we prevent that? Should we wrap showSidebar calculation in useMemo ? Scroll do



 

2021/08/10 20:21
 





 











A Visual Guide to React Rendering - It Always Re-renders  

10users  
alexsidorenko.com  


When does a React component re-render? Is it when its state or props change? Take a look at the gif above 👆 The structure of the app is: App > A > B > C. Here is a slightly simplified code: const App = () => { // state return <ComponentA /> } const ComponentA = () => <ComponentB /> const ComponentB = () => <ComponentC /> Components A, B, and C dont have any props or state. Yet, they still re-ren



 

2021/07/28 00:47
 





 



































 

Home  

 



j

k

l

e

o
 
 
















 









 

















 









 









 







Pro



 




 






App Storeからダウンロード
Google Playで手に入れよう


Copyright © 2005-2024 Hatena. All Rights Reserved.
 





x