byte-fe / react-model

The next generation state management library for React
236 stars 23 forks source link

docs(readme): fix error export #88

Closed ArrayZoneYour closed 5 years ago

ArrayZoneYour commented 5 years ago

export default Model(stores) will raise error.

image

We don't know what returns from Model(...)

You will need to write 🤔

import Model from 'models/index'
const { useStore } = Model

So I revert the changes.

codecov[bot] commented 5 years ago

Codecov Report

Merging #88 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #88   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           4      4           
  Lines         206    206           
  Branches       29     29           
=====================================
  Hits          206    206

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ce1fee9...cbc62d2. Read the comment docs.