使用了react + tsx封装了better-scroll组件,你可以直接打开scroll.tsx查看组件,test.tsx查看用法。
test.tsx记得修改接口
Use React + tsx extract a component that is about better-scroll. You can open component/scroll.tsx to watch the code of component, and component/test.tsx to watch the usage of scroll.tsx.
Don't forget to change the api in test.tsx
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.