In React now Mixins are deprecated and instead we use Containers instead of this. Containers are much simple and gives us more control and allow to do better testing.
So, we created a new project called React Komposer which helps you to create React Containers very easily.
I am using react and meteor 1.3. Just creating a .jsx file and using const Time = ({time}) => (<div>Time is: {time}</div>);
JSHint in Atom is throwing an error Unexpected token: => (undefined). Also bombs when I run the app.
I tried another function, same syntax const tester = [1, 2, 3].map(x => x + 1);
and this works and JSHint is fine with that.
What syntax would we need to use for this? Presumably you are working on this already for Mantra!
thanks. I disabled jshint when config file is not found in project folder. I had to install eslint-plugin-react as well but it looks good now. Mantra demo wouldn’t run until I installed react-komposer from npm.