React View Switching with Custom Events
Any component that needs to switch the view based on user gesture, or other event, can simply dispatch an event with a data payload. The payload is optional, and contains any data the next view may need to do its job.
read more
React View Switching with Custom Events