Skip to main content

8.07 Setting Up Project

Installing Open Sans Font

Source: fonts.google.com: Open Sans

Insert to <head> section:

public/index.html
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap" rel="stylesheet">

Installing archaic react-script

First, uninstall the current react-script version and then install 1.0.13 version:

npm uninstall react-scripts --save && npm install react-scripts@1.0.13 --save

Ejecting of react-script

Disassemble React tooling:

npm run eject

Configure webpack.config files

caution

I think now you not need ejected react-script. Reed this.

Better see this.