React Waterfall Versions Save

React store built on top of the new context API

v4.0.4

4 years ago
  • getState is back ;)

v4.0.3

4 years ago
  • Add support for nextjs

v4.0.1

5 years ago

v4.0.0-beta.4

5 years ago
  • This release allows you to make consecutive actions calls, with state always up to date
const Count = connect(({ count }) => ({ count }))(({ count }) => count)

class App extends Component {
  componentDidMount() {
    actions.increment()
    actions.increment()
    // <Count /> will display `2`
  }
  render() {
    return (
      <Provider>
        <Count />
      </Provider>
    )
  }
}

Watch it there

v4.0.0-beta.3

5 years ago

Basic example

getMovies: async (_, actions, load) => {
  if (!load) await actions.getMovies(true)
  else return { movies: { loading: true } }
  
  const data = await fetchMovies()
  return { movies: { loading: false, data } }
}

→ You'll find this example in context here

v4.0.0-beta.2

5 years ago
<button
  onClick={async () => {
    await actions.doSomething();
    actions.doSomethingElse();
  }}
>
  +
</button>
<Provider initialState={state}>
  <App />
</Provider>

v4.0.0-beta.1

5 years ago

🥁

  • "Codebase" has been rewritten from scratch 😻
  • Better flow coverage 👌
  • Splitted code between components and helpers ✂️
  • Simpler API 💪
  • Keep the original philosophy 🙃
  • Some bugs have been eliminated 💊

v3.0.7

6 years ago

v3.0.2

6 years ago

v3.0.1

6 years ago

What it was just a tutorial for the new context API has become a simple store for #ReactJS used in real life.