mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-05-16 15:51:19 -04:00
Give name to the exported module
This commit is contained in:
parent
3bfcb698e6
commit
7b704e878f
7 changed files with 21 additions and 17 deletions
src/lib
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue