'Getting started'
* Creating an app with "npm create-react-app" in a new directory in desired folder.
'Implicit vs explicit returns'
-
not declaring any values in the function -> return the function directly without the keyword "return();"
-
an inline: export const Something = () =>{};
- have constants -> {}
- no constants -> ()
-
import something from another folder: import { Header } from './components/layout/Header';
-
error: 'React' must be in scope when using JSX --> "import React from 'react';"
Tags:
-
-
+
TODO:
- read about hooks in react documentation
Lookup:
- useState
- Hooks
Left off: 1.51.58 projects Might wanna go back a lot to understand Sidebar and everything in context