recoil (with TypeScript) - .
recoil (with TypeScript) - . context API, redux .
context API, redux . // store/modalSlice.js import [object] from ""@reduxjs/toolkit""; const initialState = []; export const modalSelector = (state) => state.modal; export const modalSlice = createSlice([object] = action.payload; return state.concat([object]); }, clos..