Skip to content

Instantly share code, notes, and snippets.

@ivosabev
ivosabev / Example.js
Created March 8, 2017 09:24
Basic react-intl setup
import React from 'react';
import {withIntl} from 'ufleet-intl';
const Example = (props) => <div>{props.t('Hello, {name}', {name: 'React'})}</div>;
export default withIntl(Example);
@ivosabev
ivosabev / 0 Readme.md
Last active May 12, 2017 08:27
The Hitchhiker's Guide to the Galaxy of React - Sample Code

In a few simple steps we will create an app that has a link with a counter that increases every time we click it.

We will start with very low and rudementary implementation of a store and with each example evolve it to reach a basic Flux and then Redux implementation.

  1. Global variable - single component
  2. Global variable - multiple components
  3. Props
  4. State
  5. Flux
  6. Redux