Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You could argue it's a variation thereof, more like MVVC (Model View ViewController) maybe. In React you only really have the View layer. In this case, there's two views, a 'functional' view (the ViewController) and the 'presentation' view (the View itself).

I guess the main difference is that in MVC, the view and controller are two separated entities (side-by-side), while in React it's embedded (Controller wraps around View).



I'm new to React. From what I read, isn't React only the View? I thought its structure was more like pure view layers glued by light logic to form a higher level view. It seems I was wrong now.


Your explanation nails it. Thank you for clarifying!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: