Why do many people think that React is just the V in MVC?
my understanding is as follows: the jsx, in
1.react includes the rendering logic, which can be regarded as V, and together with the render/diff, behind it, the rendering of the component
the state and prop, of the 2.react component itself can also be regarded as M, responsible for the data state of the component, M is not limited to state
3 shared by the component tree. The event / behavior encapsulated by the component itself can also be thought of as C, which is responsible for setting and changing data. C is not limited to redux action
. Therefore, without access to redux, a single functional component itself can also be regarded as a local MVC model