yarn dev
The id of the div inside the body of /public/index.html has to be the same as ELEMENT_ID in index.tsx
yarn build
After you have built the frontend run yarn serve-fragment
yarn watch-fragment
(No need to build the frontend before running this command)
To set a port other than the default one (5000) simply add PORT=YOUR_PORT_NUMBER
before yarn serve-fragment
e.g. PORT=3000 yarn serve-fragment