May 2017
Intermediate to advanced
388 pages
7h 30m
English
In the preceding example, the data passed to the child component via props was generated in the parent component itself in the setInterval function. In order to render React components on Meteor's data change, we need to create a component container.
The steps are as follows:
>> npm install react-meteor-data --save >> npm install react-addons-pure-render-mixin --save
import React from 'react'; import TimerDisplay from './TimerDisplay'; import { createContainer } from 'react-meteor-data';
Read now
Unlock full access