Preact concentration example
C:\Users\tetra\Preact\n
Preact CLI
Example:
preact create template-name app-name
templates are: Default, Simple, Material, Netlify CS
app-name: concentration ...should be shorter. Got a WARN!
therefore:
====DO THIS====
Navigate to parent directory in terminal
>preact create Simple concentration
>cd concentration
>npm start .... server will start on localhost:PORT ... look at console for PORT
open browser and look for Hello World
open src/index.js
replace 'Hello World' with 'Concentration'. Ctrl-S to save and watch your browser. Auto updates.
next, copy the basic class component pattern into a new file
rename it
import it into index.js