Skip to content

Instantly share code, notes, and snippets.

@Daltonic
Created April 12, 2023 19:55
Dapp Lottery
import { createSlice } from '@reduxjs/toolkit'
import { global_actions } from './actions/global_actions'
import { global_states } from './states/global_states'
export const globalSlice = createSlice({
name: 'global',
initialState: global_states,
reducers: global_actions,
})
export const globalActions = globalSlice.actions
export default globalSlice.reducer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment