MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / create

Function create

zustand-test/src/myZustand.js:50–58  ·  view source on GitHub ↗
(createState)

Source from the content-addressed store, hash-verified

48}
49
50export const create = (createState) => {
51 const api = createStore(createState)
52
53 const useBoundStore = (selector) => useStore(api, selector)
54
55 Object.assign(useBoundStore, api);
56
57 return useBoundStore
58}
59

Callers 5

App.jsFile · 0.90
components.tsxFile · 0.90
App4.tsxFile · 0.90
store.tsFile · 0.90

Calls 1

createStoreFunction · 0.85

Tested by

no test coverage detected