this post caught me off guard as I finished the React course and not once was mentioned some special method or element called “Feature” specific to React.
Could you share more where you learnt about “features”? Also what do you mean by “slices”? Is it possible that creating different folders was just about organization rather than a React-specific attribute?
As per Components you use them when you need to render something.
Every Component must always render something, thus every time a new Component is created the render method must be included
Components can be defined as JS classes (Class Components) or JS functions (Function Components) they do the same but changes the syntax.
There’s a design pattern to divided Components in smaller units called Presentational and Functional Components when they are becoming too complex (they have too many features).
A component is a small, reusable chunk of code that is responsible for one job
Presentational Components will have the sole objective to render HTML/JSX.
Functional Components (also Containers) will have the objective to manage the logic, states etc (the functional part).
Hope this helps