React.js with MeteorJS
Developing an application with Angular.js is fun. Similarly, we are going to develop the same application in React.js. React.js is simpler than Angular.js. Though there are not many tutorials or applications out there, giving it a try is worth it.
The reactivity part of React.js revolves around states
and props
. The States
and props
are equivalent to $scope
in Angular.js. The change in value will render the markups again. However, React.js provides more handle over when to update the markup with a set of APIs. This is a more react-specific topic to discuss. The only thing to remember is, too many rerenders will affect application performance. So, you should efficiently mind how you handle the state changes.
Like angular-meteor
, we have MeterorJS specific React.js packages. There are two important packages: react
and react-template-helper
. With the React.js package, we get the ReactMeteorData
mixin that provides a few methods to deal with MeteorJS' reactive data. The...