Skip to content

Error react_context_hook__WEBPACK_IMPORTED_MODULE_12__.store.get is not a function #90

Open
@yelnyafacee

Description

@yelnyafacee

I ma getting Error react_context_hook__WEBPACK_IMPORTED_MODULE_12__.store.get is not a function from store.get('something'),

import { useStore, withStore } from 'react-context-hook';
import {store} from 'react-context-hook' //import the raw store


function Category() {

   .....

  if(store.get('something')) {
  
     ....
  
  }

}

can you show an example of how the store.get('something') is used? how do I get one of the store value with a key?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions