Skip to content

Instantly share code, notes, and snippets.

@Daltonic
Created December 20, 2023 16:54
Show Gist options
  • Save Daltonic/47f743789f5d7b075c193cddafcb948e to your computer and use it in GitHub Desktop.
Save Daltonic/47f743789f5d7b075c193cddafcb948e to your computer and use it in GitHub Desktop.
Dapp Bnb
import { createSlice } from '@reduxjs/toolkit'
import { globalStates as GlobalStates } from './states/globalStates'
import { globalActions as GlobalActions } from './actions/globalActions'
export const globalSlices = createSlice({
name: 'global',
initialState: GlobalStates,
reducers: GlobalActions,
})
export const globalActions = globalSlices.actions
export default globalSlices.reducer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment