DEV Community

Cover image for Stop Using React! πŸš€πŸ”₯
Arjun Vijay Prakash
Arjun Vijay Prakash

Posted on • Edited on

Stop Using React! πŸš€πŸ”₯

In this post I will be listing you some cons of using ReactJs as compared to using NextJs.

Some Cons of using ReactJs-

  • Problems with SEO
  • Non-Vigilant Focus on User Interface
  • Lack of Documentation
  • JSX as a Barrier

What to replace React with?

The simple answer to this question is NextJs

Why NextJs?

Next JS offers server-side rendering (SSR), whereas React Js offers client-side rendering, improving the application performance. Next.js is a framework, used to build UI and pages for the web app with React library, while React.js as a library is a part of a framework, the UI components part.

ReactJS helps in building the beautiful UI of a web application while with NextJS, we can build an entire web application.

Conclusion

So, which one is better? There is no answer to this question but according to me NextJs is better that React because it allows the programmer to write Backend and Frontend at the same time

Top comments (4)

Collapse
 
link2twenty profile image
Andrew Bone

NextJS uses ReactJS, as does Remix. Whilst the title is catchy you're not saying don't use React you're saying render your React server side.

Collapse
 
arjuncodess profile image
Arjun Vijay Prakash

You got me πŸ˜‚

Collapse
 
anyanka profile image
Anja

Oh, that's interesting! I didn't know that React causes SEO problems.
But I can't comprehend the lack of documentation – there is a huge documentation on the React site itself, what do you miss?

Collapse
 
link2twenty profile image
Andrew Bone

The issue is actually SPAs aren't very good at being indexed by crawlers it's not an issue with React directly. NextJS solves this by actually serving unique HTML per page rather than having one page manipulated to look different depending on the URL.