Using useMemo( )-It is a React hook that is used for caching CPU-Expensive functions. It depends on you whether you want it to run just once or runs after every render. Whenever the value in UserContext changes, Greeting component would automatically be re-rendered by React.. A dropdown menu for displaying choices - an elegant alternative to the native