Give name to the exported module

This commit is contained in:
Matthew Taylor 2015-10-16 15:10:17 -04:00
parent 3bfcb698e6
commit 7b704e878f
7 changed files with 21 additions and 17 deletions
src/lib

View file

@ -2,7 +2,7 @@ var ReactDOM = require('react-dom');
var ReactIntl = require('react-intl');
var IntlProvider = ReactIntl.IntlProvider;
module.exports = function (jsx, element) {
var render = function (jsx, element) {
// Get locale and messages from global namespace (see "init.js")
var locale = window._locale;
var messages = window._translations[locale];
@ -21,3 +21,5 @@ module.exports = function (jsx, element) {
window._renderedComponents.push(component);
}
};
module.exports = render;