Skip to content

Instantly share code, notes, and snippets.

@claudioovp
Last active September 15, 2017 20:41
Show Gist options
  • Select an option

  • Save claudioovp/e7b50bbe5f22dac35f7df729072f94c2 to your computer and use it in GitHub Desktop.

Select an option

Save claudioovp/e7b50bbe5f22dac35f7df729072f94c2 to your computer and use it in GitHub Desktop.
React List

Computing Derived Data


API


Example Redux Reselect

export const getItems = (state) => state.cart.get('items');
export const getItemsWithTotals = createSelector(
  [ getItems ],
  (items) => {
    return items.map(i => {
      return i.set('total', i.get('price', 0) * i.get('quantity'));
    });
  }
);
## Use ScrollReveal on React
- https://andrewshiau.wordpress.com/2017/04/02/use-scrollreveal-js-on-a-react-component/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment