The most clear way to format a date (dd/mm/yyyy) or (yyyy/mm/dd) in React is to use: date-fns. Also, in this article you will learn how to format dates with just Vanilla JavaScript!
Basically, using setTimeout in React, you should be able to create a function inside the useEffect hook, or in the case of classes components, inside componenDidMount.
I assume that have searched for 'how to map in react' or even 'reactjs map', and you find first position the official React blog. However, you still don't understand quite well how React works, JSX and how the map enters to play in this scenario.
For instance, you migh feel stucked when trying to implement localStorage into your app. The truth is that using localStorage in React is almost the same as you would do with a JavaScript app.
React.memo() is a high order component, that allows you to not re-render your component unless the props have changed. But you want to know when and how to use it right?
Instead of only installing a bunch of dependencies and that's trying to create the whole setup by yourself, npx is an abbreviation of npm, and it will initialize your React app with all the folder and basic setup you need to run a complete React app.
Let's define first, what is a component. It is a function. Components are functions. So in the topic of this article, we want to make that function utilizable for multiple cases.