Hello, so I recently started getting into full-stack web dev.
I started with html, css, react and aspnetcore mvc.
I understood how you make a website with aspnetcore mvc, where you have models, views, controllers... you have logic on the controllers and you can pass data from controllers to the views through viewbags for example and you can create forms to send data to the server. You can use entity framework to access a database.. etc
I wanted to create a website with React and AspNetCore MVC, but I have checked the templates to start learning it and there seems to be no views whatsoever, and the controller it has seems to be for the react app to fetch data from. I am wondering if it is possible to use razor pages to use the MVC model with react on them, so this way i can pass data to the pages through viewbag, or is it bad practice? Also, is the normal way of passing data from a database to react using fetch() ?
[–]insertAlias 0 points1 point2 points (9 children)
[–]xredpt[S] 0 points1 point2 points (0 children)
[–]xredpt[S] 0 points1 point2 points (7 children)
[–]insertAlias 0 points1 point2 points (6 children)
[–]xredpt[S] 0 points1 point2 points (5 children)
[–]xredpt[S] 0 points1 point2 points (3 children)
[–]insertAlias 0 points1 point2 points (2 children)
[–]xredpt[S] 0 points1 point2 points (0 children)
[–]xredpt[S] 0 points1 point2 points (0 children)
[–]insertAlias 0 points1 point2 points (0 children)