Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>React Redux Plus SnippetsNew to Visual Studio Code? Get it now.
React Redux Plus Snippets

React Redux Plus Snippets

Shahar Ilany

|
66 installs
| (0) | Free
Snippets for easier usage of React Redux Plus
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

React Redux Plus Snippets

An extension for React Redux Plus package

Usage

  • is (Initialize Store): used to initialize the store at index.tsx
    import { initializeStore } from 'react-redux-plus'
    
    export const { store, useStateValue } = initializeStore(
    {
        <State and init value goes here>
    },
    {
        <Setters and modifiers goes here>
    })
  • usv (Use State Value): used to call reference a value from the store
    import { initializeStore } from 'index.tsx'
    
    const [value, modifyValue] = useStateValue("value")

    // Usage:

    // Getter:
    value 

    // Modifier
    modifyValue.set("newValue")

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft