Preact
A simpler version of react.
A prop is a custom property.
Preact Components
- Components are the building blocks of a Preact application
- Components have custom properties (i.e. ”props“)
- Example using a custom component:
Functional Components Declarative 36 Functions are the most common way to create components:
So you have a single render call in Preact.
Now you need to understand how the signals and effects work.
Avoid using classes to define components, you should define components with functions.
Components can also be defined as classes
- method is no longer common, functional components are better
Things I don't understand
- useEffect: How to reset and when to reset the canvas thing to false, so it triggers the thing.