Vue.jsのVuexと似てるけど、こんなんだったっけな。 import React from 'react'; import QuxComponent from '../QuxComponent/QuxComponent'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; const BazComponent = () => { const initial_state = { a: 1, b: 2, c: 3, } const reducer = (state = initial_state, action) => { switch (action.type) { case 'increment': return { ...state, a: state.a + 1, b: stat
