Skip to content

Instantly share code, notes, and snippets.

View nikakoy131's full-sized avatar

Ruslan Beliy nikakoy131

View GitHub Profile
import React, { useReducer } from 'react';
import { BrowserHistory, Update, History } from 'history';
import { Router } from 'react-router-dom';
import {
Middleware, createSlice,
} from '@reduxjs/toolkit';
type ReduxAction<T = any> = {
type: string,
payload?: T,