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