L
L
LB7772015-03-19 12:41:51
React
LB777, 2015-03-19 12:41:51

What does the EventEmitter do in react.js?

Studying https://scotch.io/tutorials/creating-a-simple-shop... in the files stores (CartStore.js and ProductStore.js ) I saw
var EventEmitter = require('events').EventEmitter;
At the same time, it is not clear to me where 'events' is connected and EventEmitter can do the same as and in Node.js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2016-05-11
@maxfarseer

It's not that it can, the same as in Node.js, it is ' events ' from Node.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question