Open nbkhope opened 2 weeks ago
Create the index page component : web-client/pages/index.js
web-client/pages/index.js
Use that for the routes.js file, under route object with index: true. (i.e. specify element: <TheIndexComponentName />
element: <TheIndexComponentName />
Then figure out how to move everything from src/index.html there.
Remember:
class becomes className
for becomes htmlFor
CSS link becomes import '/path/to/file.css'
import '/path/to/file.css'
Create the index page component :
web-client/pages/index.js
Use that for the routes.js file, under route object with index: true. (i.e. specify
element: <TheIndexComponentName />
Then figure out how to move everything from src/index.html there.
Remember:
class becomes className
for becomes htmlFor
CSS link becomes
import '/path/to/file.css'