C
C#2mo ago
Жаба

Razor or React?

I would like to do a small pet project - a website. In the backend I will use ASP.NET, but in the frontend I am a complete zero. I would like to be able to show this project as a portfolio of work for the backend. Plus to understand how the frontend connects with the backend, at least on a minimal level. But I don't know what is better to use for frontend Razor Pages or React. In both cases I am a complete zero and will have to learn from zero. In your opinion, which would be better to choose Razor or React? I was planning to use GPT for code generation on react to make it easier to understand the frontend
3 Replies
Angius
Angius2mo ago
Razor Pages and React give you two completely different things Do you want server-side rendering, or an API and client-side rendering?
Keswiik
Keswiik2mo ago
I was planning to use GPT for code generation on react to make it easier to understand the frontend
It doesn't take long to learn react, I'd recommend against relying on LLM slop for a portfolio project; learn the framework first, then use an LLM to help you develop faster if that's your goal.
Жаба
ЖабаOP2mo ago
Hmm... it's hard to say, I'm not good at this. But I guess client-side rendering is used more often and more popular, and server-side generation is less popular, am I right? So probably React would be preferable for me, if I'm right Okay, I'll take your advice into mind when writing the project

Did you find this page helpful?