Skip to content

Instantly share code, notes, and snippets.

@balibou
Created August 2, 2016 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balibou/45af46aba0c2110536bf5ad3a5d980a3 to your computer and use it in GitHub Desktop.
Save balibou/45af46aba0c2110536bf5ad3a5d980a3 to your computer and use it in GitHub Desktop.
// ./imports/ui/containers/plans-list.js
import { composeWithTracker } from 'react-komposer';
import { PlansList } from '../components/plans-list';
import { Loading } from '../components/loading.js';
import { Meteor } from 'meteor/meteor';
const composer = (params, onData) => {
const plans = Meteor.settings.public.plans;
onData(null, { plans });
};
export default composeWithTracker(composer, Loading)(PlansList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment