#reactjs
Read more stories on Hashnode
Articles with this tag
The Issue Consider this case. I am building a spa with multiple page. There is a video in page A and also the same video in page B. I want to preserve...
Usually, react component will only read data from states, props or context. Or we can use any third party library such as redux to store global...
Consider one example below. We have 3 tabs on the top. Each tab has a list of items. We could scroll down to load more items for the tab. The tabs...
In a previous article, I talked about how to implement global states in react by context. In this article, let's see how to do it manually, the...
I wrote an article about ref in React before. In that article I wrote some typical usage of the useRef hook. In this article, let see another 2 apis...
React does not provide a global states solution. So normally we use state lift to share state between multiple components. Or we choose some global...