redlock / context-exp

Repository from Github https://github.comredlock/context-expRepository from Github https://github.comredlock/context-exp

Global State APIs Comparison

This repo compares two approache for global state management. To simplify the code we are using the new hooks API (https://reactjs.org/docs/hooks-intro.html).

  • index.tsx is using the new react-context api.
  • index.mobx.tsx is using mobx-react

to run

yarn start

to switch approaches change the entry file in webpack.config.js

entry: "./src/index.mobx.tsx",

About


Languages

Language:TypeScript 76.8%Language:JavaScript 14.4%Language:HTML 8.8%