-
- write your component in src/components.
-
- test your component in src/_test.tsx. note that _test.tsx is test entry point.
import Tab from './components/tab/tab';
function App(){
return <Tab items={...}>
}
then start dev server use follow commands:
npm install
npm run dev