Skip to content

Commit 9253ec5

Browse files
author
Morgan Croney
authored
fix example js
Previous example returned `Hello ,webpack ` rather than `Hello webpack`.
1 parent 5d02a15 commit 9253ec5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

content/get-started/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ function component () {
3333
var element = document.createElement('div');
3434

3535
/* lodash is required for the next line to work */
36-
element.innerHTML = _.map(['Hello','webpack'], function(item){
37-
return item + ' ';
38-
});
36+
element.innerHTML = _.join(['Hello','webpack'], ' ');
3937

4038
return element;
4139
}

0 commit comments

Comments
 (0)