Aplicarea ca ierarhie a componentelor
O aplicație web este prezentată prin definirea unui DOM structural care urmează să fie redat. Când starea aplicației se modifică, probabil datorită unui eveniment de utilizator, structura DOM se modifică pentru a reprezenta noul stat. React.js împarte rendering-ul DOM și interactivitatea în componente, fiecare component fiind responsabil pentru propria sa stare și prezentare.Componentele
O componentă depinde de trei containere de stare: context, recuzită, stare
Componentele fac ca un DOM virtual să fie aplicat interfeței utilizator
Ori de câte ori se modifică containerul de stare al unei componente, acesta este reîncadrat
Pot fi recepționate mesaje și schimbări de stare declanșate
Componentele pot avea apeluri setate în context sau elemente de recuzită
The web application as a hierarchy of components
A web application is presented by defining a structural DOM to be played back. When the application status changes, perhaps due to a user event, the DOM structure changes to represent the new state. React.js splits DOM rendering and component interactivity, each component being responsible for its own status and presentation.The components
One component depends on three status containers: context, props, status
The components make a virtual DOM to be applied to the user interface
Whenever the status container of component changes, it is re-engineered
Messages and status changes can be received
Components can have context-settled or prompted calls
No comments:
Post a Comment