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.
Alright, 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