Skip to content

Instantly share code, notes, and snippets.

@safronman
Last active August 16, 2022 17:27
Show Gist options
  • Select an option

  • Save safronman/b405f7a721b4d10c3b6314d448725828 to your computer and use it in GitHub Desktop.

Select an option

Save safronman/b405f7a721b4d10c3b6314d448725828 to your computer and use it in GitHub Desktop.
import { createSlice } from '@reduxjs/toolkit'
export const hostAppSlice = createSlice({
name: 'host-app',
initialState: {
value: false,
},
reducers: {
changeValue: (state) => {
state.value = true
},
},
})
export const hostAppReducerActions = hostAppSlice.actions
export const hostAppReducer = hostAppSlice.reducer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment