Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Rumesh Madhusanka
Rumesh Madhusanka

Posted on

     

MVC architecture in react, node rest api

I am creating a web app with react as front end, and a rest api as the back end. How does the MVC architecture fit in to it? OR is there a better architecture than MVC for this task?

Top comments(2)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
sfiquet profile image
Sylvie Fiquet
  • Location
    United Kingdom
  • Joined

You might want to have a look atthis article by Michael Chan where he describes React as being the V and the C in MVC. But keep in mind that it was written 4 years ago and things have evolved since.

I got there from Dan Abramov's Medium postSmart and Dumb Components. Nowadays it starts with a warning that his views have evolved since he wrote it. Still it might be a starting point.

I wish I could point you directly to best practice but I'm still trying to figure out what that is. My general impression is that best practice is evolving with React and React is evolving as problems are identified and solutions are being provided. I believe the current recommendation these days is to usehooks to decouple behaviour from presentation.

Hooks were introduced earlier this year so they're a recent feature. If you are new to React maybe you want to get familiar with all the React concepts first before considering using hooks.

CollapseExpand
 
faiqfarzan profile image
Muhammad Farzan Faiq
Hi guys, I am Learner, Technologist, Web Application Frontend / Backend Developer / Programmer. Now a days, i am very curious about to learn React js / Node js / Express js.
  • Email
  • Location
    Orangi Town, Sindh, Karachi, Pakistan
  • Education
    Bachelor Program (4 Years)
  • Work
    Senior Web Application Developer at Muhammad Farzan Faiq
  • Joined

You can check this below article that who to make mvc structure in node express react
dev.to/eaetukudo/understanding-mvc...

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Computer Science and Engineering Undergraduate
  • Location
    Sri Lanka
  • Education
    Department of Computer Science and Engineering, University of Moratuwa
  • Joined

More fromRumesh Madhusanka

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp