scrimba
Redux Fundamentals With React
Actions
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Actions
AboutCommentsNotes
Actions
Expand for more info
store
index.js
run
preview
console
import { createStore } from 'redux'

const house = {
type: 'condo',
rooms: [],
doorsOpen: {
backDoor: false,
frontDoor: true
}
}

const reducer = (state = house, action) => {
return state
}

const store = createStore()

export default store



// {
// type: 'ADD_ROOM',
// payload: { id: 1, type: 'Living Room' }
// }

Console
index.html
-3:07