Configuring STORE

 WE CREATE A TODO APP.

A FILE IS CREATED IN src/app/store.js

CONFIGURING STORE:

STORE IS AN OBJECT.

HERE, STORE CONSISTS OF AN ARRAY OF TODO'S.

TODO'S ARE ALSO OBJECTS THAT CONSISTS INFO.

todo => { id, task, isDone }

INITIALLY, isDone : false

STORE.JS

import { configureStore } from "@reduxjs/toolkit";

export const store = configureStore({
reducer: {}
});

Comments

Popular posts from this blog

TODO COMPONENT (PROVIDER AND USE SLECTOR)

MARK AS DONE

Deciding ACTIONS