- 1

What is recycle bin?

How can i create recycle bin? Can use useState to create recycle bin

3rd Apr 2022, 12:13 PM
Gurucharan Sahay
1 Réponse
0
Explanation: Recycle bin, looking at the name it consists of two parts Recycle and bin Recycle is process of making good use of something by what Storing them in the next part of the name bin So the whole idea is keeping data useful for future use Recreating: Using useState on my point of view is advisable even if it possible, there is redux store to help you with that Using useState for me is not advisable because when page is refresh it get refreshed so it means all content lost If a component is mounted (“started”) new instance of state is created so using it as a recycle bin is a no no. But you can try with redux store coupled with redux-persist
3rd Apr 2022, 12:45 PM
Faisal Issaka
Faisal Issaka - avatar