<commit_before># kortex

[![Build Status](https://travis-ci.org/ronelliott/kortex.svg?branch=master)](https://travis-ci.org/ronelliott/kortex)
[![Coverage Status](https://coveralls.io/repos/github/ronelliott/kortex/badge.svg?branch=master)](https://coveralls.io/github/ronelliott/kortex?branch=master)

Dead simple state management for react.

## Installation

    $ npm install kortex

## Usage

### Connecting

Connecting a component to the global state should feel familiar, simply call
`connect`, passing an object mapping your component's interested keys (more later)
to the expected prop name, like so:

```javascript
import MyAwesomeComponent from "./components/MyAwesomeComponent";
import { connect } from "kortex";
const MyAwesomeConnectedComponent = connect(MyAwesomeConnectedComponent);
```

Now `MyAwesomeConnectedComponent` will receive all props passed down from the parent,
and inject those requested from the state
<commit_msg>Added note about examples to README<commit_after># kortex

[![Build Status](https://travis-ci.org/ronelliott/kortex.svg?branch=master)](https://travis-ci.org/ronelliott/kortex)
[![Coverage Status](https://coveralls.io/repos/github/ronelliott/kortex/badge.svg?branch=master)](https://coveralls.io/github/ronelliott/kortex?branch=master)

Dead simple state management for react.

## Installation

    $ npm install kortex

## Examples

* [Counter](https://github.com/ronelliott/kortex-example-counter)]

## Usage

### Connecting

Connecting a component to the global state should feel familiar, simply call
`connect`, passing an object mapping your component's interested keys (more later)
to the expected prop name, like so:

```javascript
import MyAwesomeComponent from "./components/MyAwesomeComponent";
import { connect } from "kortex";
const MyAwesomeConnectedComponent = connect(MyAwesomeConnectedComponent);
```

Now `MyAwesomeConnectedComponent` will receive all props passed down from the parent,
and inject those requested from the state

{'fraction_non_alphanumeric': 0.11060834590246355, 'fraction_numerical': 0.0, 'mean_word_length': 6.081850533807829, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, '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': '6085993', 'n_tokens_mistral': 603, 'n_tokens_neox': 561, 'n_words': 163}