Links:
cloudflare: https://www.cloudflare.com
freenom: https://www.freenom.com
github: https://github.com
install gh-pages: npm i gh-pages
https://www.npmjs.com/package/gh-pages
add "homepage" to to package.json:
"homepage": "http://YOURDOMAIN.com"
add scripts to package.json:
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
add CNAME file to public folder
Managing a custom domain for your GitHub Pages site with this A record:
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153