Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
[examples/tests] convert some functions to modern syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kale-io authored and ljharb committed Jul 20, 2018
1 parent e1c1613 commit 9e7be15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/simple/app/assets/javascripts/MyComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var renderReact = require('hypernova-react').renderReact;

function MyComponent(props) {
return React.createElement('div', {
onClick: function () {
onClick() {
alert('Click handlers work.');
},
}, 'Hello, ' + props.name + '!');
Expand Down
4 changes: 2 additions & 2 deletions test/components/nested/component.bundle.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const hypernova = require('../../../');

module.exports = hypernova({
server: function () {},
client: function () {},
server() {},
client() {},
});

0 comments on commit 9e7be15

Please sign in to comment.