Skip to content

Commit

Permalink
updated vanilla, react and vue examples
Browse files Browse the repository at this point in the history
  • Loading branch information
roy authored and ardatan committed Apr 28, 2018
1 parent 30efe60 commit 3249c21
Show file tree
Hide file tree
Showing 12 changed files with 4,220 additions and 10,364 deletions.
10 changes: 5 additions & 5 deletions examples/react/client/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';

import App from './ui/App';
import './main.css'

Meteor.startup(() => {
render(<App />, document.getElementById('render-target'));
render(
<App />,
document.getElementById('render-target')
);
});

if(module.hot){
module.hot.accept();
}
3 changes: 2 additions & 1 deletion examples/react/client/ui/App.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { hot } from 'react-hot-loader'
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Meteor } from 'meteor/meteor';
Expand Down Expand Up @@ -100,4 +101,4 @@ export default withTracker(() => {
incompleteCount: Tasks.find({ checked: { $ne: true } }).count(),
currentUser: Meteor.user(),
};
})(App);
})(hot(module)(App));
Loading

0 comments on commit 3249c21

Please sign in to comment.