JavaScript Technical Interview Question: is React a MVC or MVVM?

And what are the differences between all of the various design architectures?

GP Lee
Web Developers Tomorrow

--

Photo by 🇨🇭 Claudio Schwarz | @purzlbaum on Unsplash

JavaScript has gained so much popularity recently and many MV* based JS frameworks are made and gained popularities among JS developers. Let’s find out what MV* design pattern each frameworks use and how they interpret the design pattern

JavaScript MVC frameworks detract from conventional MVC for its use of controllers (C of MVC)

Server Side interpretation of MVC does not translate 1:1 on the client side

What is MV*?

  • In the past, MV* patterns have been heavily used for structuring desktop and server-side applications, but it’s only been in recent years that they have been applied to JavaScript
  • The main goal of MV* pattern is a separation of concerns
  • There are 3 very important architectural patterns in MV* patterns (MVC, MVP, MVVM)

MVC

What is MVC?

--

--

GP Lee
Web Developers Tomorrow

Full Stack Engineer (JS, C#, AWS) in NYC. Please follow me on @gpda (Github) or @gpleeda (LinkedIn)