title: event bus in React?
body: <p>I'm mainly using Vue, and just recently picked up React. Loving it so far, and its quite similar in a lot of ways to Vue, which makes learning it way easier.</p>
  
  <p>Now, let's consider two siblings component. I want to trigger something in component number one, when something happens in component number two. In Vue you can just bind <code>window.bus = new Vue</code>, and then emit in one of the components <code>bus.$emit('event')</code> and bind in the <code>mounted()</code> of the second component <code>bus.$on('event', this.doSth)</code>.</p>
  
  <p>How can you achieve that in React? </p>