Skip to content

Instantly share code, notes, and snippets.

@engineersamuel
Created January 6, 2016 13:04
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 engineersamuel/781910ac46bc84461f52 to your computer and use it in GitHub Desktop.
Save engineersamuel/781910ac46bc84461f52 to your computer and use it in GitHub Desktop.
Class def
import React from "react";
import shallowEqual from "react-pure-render/shallowEqual"
// Flux
import connectToStores from 'alt/utils/connectToStores';
import FilterSortActions from '../flux/actions/FilterSortActions';
import FilterSortStore from '../flux/stores/FilterSortStore';
@connectToStores
export default class IsotopeResponseRenderer extends React.Component {
// This class takes no attributes, pass in children of type Element
static propTypes = {};
static getStores() {
return [FilterSortStore];
}
static getPropsFromStores() {
return FilterSortStore.getState();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment