Adds withQuery(query, options)(component) which is more composable with other HoC functions.
Moves lib files to root folder for cleaner direct imports.
For example you can now choose to do:
import withQuery from 'meteor/cultofcoders:grapher-react/withQuery';
instead of
import { withQuery } from 'meteor/cultofcoders:grapher-react';
which should allow smaller bundle sizes because of direct imports.
withQuery(query, options)(component)
which is more composable with other HoC functions.For example you can now choose to do:
import withQuery from 'meteor/cultofcoders:grapher-react/withQuery';
instead ofimport { withQuery } from 'meteor/cultofcoders:grapher-react';
which should allow smaller bundle sizes because of direct imports.