@legion-rnd/react-core
Version:
38 lines (29 loc) • 614 B
Markdown
Creat file `main.tsx` and copy this code
```js
import ReactDOM from 'react-dom/client'
import App from './app'
import './style.scss'
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
```
create file `app.tsx` and import in `main.tsx` and then you do anything in app component. And then `yarn dev` or `npm run dev`
```js
// for run R&D
yarn dev
// or
npm run dev
// for run unit test
yarn test
// or
npm run test
// for run storybook
yarn storybook
// or
npm run storybook
```