<commit_before>React Fetch HOC
=================
[![npm version](https://badge.fury.io/js/react-simple-fetch-hoc.svg)](https://badge.fury.io/js/react-simple-fetch-hoc)

An experiment to quickly integrate and use an API requests with High Order Component 🚴🏽

###### The API might change any day.
###### Do not use in Production!

What is it ?
-----

It's a simple library build on <a href="https://facebook.github.io/react/docs/higher-order-components.html">React High Order Components</a> and on <a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">fetch</a> (currently)
which assumes responsibility for receiving data from the server and transferring it to your component.

### Example

```
import React from 'react';
import fetch from 'isomorphic-fetch';
import fetchHoc from 'react-fetch-hoc';

const API_ROUTE = 'https://jsonplaceholder.typicode.com/posts';

const Post = ({ title, body }) => {
  return (
    <div><commit_msg>Added How To Install<commit_after>React Fetch HOC
=================
[![npm version](https://badge.fury.io/js/react-simple-fetch-hoc.svg)](https://badge.fury.io/js/react-simple-fetch-hoc)

An experiment to quickly integrate and use an API requests with High Order Component 🚴🏽

###### The API might change any day.
###### Do not use in Production!

How to install ?
-----

`npm i -s react-simple-fetch-hoc`

What is it ?
-----

It's a simple library build on <a href="https://facebook.github.io/react/docs/higher-order-components.html">React High Order Components</a> and on <a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">fetch</a> (currently)
which assumes responsibility for receiving data from the server and transferring it to your component.

### Example

```
import React from 'react';
import fetch from 'isomorphic-fetch';
import fetchHoc from 'react-fetch-hoc';

const API_ROUTE = 'https://jsonplaceholder.typicode.com/posts';

const Post = ({ title, body }) => {
  return (
    <div>
{'fraction_non_alphanumeric': 0.16326530612244897, 'fraction_numerical': 0.0, 'mean_word_length': 4.387362637362638, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7331519', 'n_tokens_mistral': 628, 'n_tokens_neox': 597, 'n_words': 183}