Skip to content

Instantly share code, notes, and snippets.

@haruelrovix

haruelrovix/CommitList.js

Last active Dec 13, 2018
Embed
What would you like to do?
RNE x RNW: Add compose and fetch GitHub API
import { compose } from 'redux';
import fetch from 'fetch-hoc';
...
export default compose(
withHeader({ title: 'Commits' }),
fetch('https://api.github.com/repos/react-native-training/react-native-elements/commits')
)(CommitList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.