Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Initial state is better included in the individual reducers #3

@rvvergara

Description

@rvvergara

Hi @arielcamus,

In Milestone 4 , the initialState object to be included as individual 'initial states' in the respective reducers instead of having them in src/index.js. For instance in the book reducer we can have an initial state:

const initialState = [{<book1 object>}, {<book2 object>}]

This makes a cleaner index.js.

Also we should probably include here a step to put store creation in its own file (i.e, in a src/store/index.js file as it is a common practice in redux projects (at least in those projects I previously encountered). This helps the student to have a clearer way of structuring redux projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions