React: Create an 'EmptyState' component
Empty states and values are always checked. It throws an error if the array is 'undefined' or 'null'. There has to be a message if there is no data.
Try this 'EmptyState' component which covers these basic use cases.
/** EmptyState.js */
import Rea...
codedrops.hashnode.dev1 min read