1.

What is MVC and where does React stand in it?

Answer»

MVC or Model-VIEW-Controller is a software design pattern mainly used in Web development for creating complex web-apps.  This architecture comes from the traditional flow of web-application:

  • View: Displays VISUALISATION of data to the user. It is mainly the UI which the user interacts with.
  • Controller: It processes server-side logic and is a middleware between View and Model.
  • Model: It mainly processes data from or to the DATABASE. It is only connected to the database.

Now, React is considered as the View LAYER in the MVC model, as it is mainly used to create the UI.
To use Controller and Model logic in React, we use third party libraries like flux and Redux with it.



Discussion

No Comment Found