I had to use the following code to get the example to work. Doing import {render} from 'react-dom' said render was not a function. Not sure if this is a version or release issue, but hopefully it helps someone and could maybe be changed in a future version of this app if others run into this.
So the following is my main.js:
import { Meteor } from 'meteor/meteor';
import ReactDOM from 'react-dom';
import { renderRoutes } from '../imports/client/routes.jsx';
import '../imports/startup/accounts-config.js';
Meteor.startup(() => {
ReactDOM.render(renderRoutes(), document.getElementById('app'));
});
I had to use the following code to get the example to work. Doing
import {render} from 'react-dom'
saidrender was not a function
. Not sure if this is a version or release issue, but hopefully it helps someone and could maybe be changed in a future version of this app if others run into this.So the following is my
main.js
: