-
The files in the
modelsfolder can import any other files in themodelsfolder. -
The files in the
modelsfolder can not import files outside it under current project, for example:statesfolder, andcomponentsfolder. -
The files in the
modelsfolder can not import lib that is platform-specific to web or native, for example:next,react-native. -
Other folders can import anything in the
modelsfolder. -
Don't recommend to import recoil state directly in the
modelsfolder, if we need state managed by recoil but don't want to put it into themodel, we can put it in thestatesfolder.
First, run the development server:
npm run dev
# or
yarn dev