Sharing store change event between same hierarchical level child components
Sharing store change event between same hierarchical level child components I am developing a simple React JS application for learning purpose. I just started learning React JS a few days ago. Now, I am having a problem with Flux Store. I need to share the change event across two child components on the same hierarchical level. Please, see my scenario below. I have the parent component, called TodoComponent with the following definition //Create class TodoComponent extends React.Component{ constructor(props){ super(props) } render(){ return ( <div> <div> <ListComponent /> </div> <AddItemComponent /> </div> ) } } It has two child components called, ListComponent and the AddItemComponent. Moreover, I have a store with this definition. import { EventEmitter } from 'events'; class DataStore extends EventEmitter{ cons...