Props are used to pass data from one component to another. The state is a local data storage that is local to the component only and cannot be passed to other components .
Props are used to pass data from one component to another. The state is a local data storage that is local to the component only and cannot be passed to other components .