and logic(JavaScript) • Managing DOM is difficult. • DOM has state. • DOM like a global variable • Anyone can update it anytime. • We consider asynchronous action • Ajax
JavaScript library for UI • React.js provide view function. • React.js has virtual DOM • Calculate diff between DOM and virtual DOM • React.js update only diff. • Component-based • ”Its goal is to be simple, devlarative and composable.” (from wikipedia)
can adapt updating all DOM programing style. • We don’t concern state of current DOM. • React.js update diff automatically. we don’t need to concern diff.
• We don’t concern state of current DOM. • Component oriented • state, logic and view are involved. • Data flow is simple. • Parent component send to child component.