DEV Community

Discussion on: React 18 - New Features & Improvement Strategies

Collapse
 
rickdelpo1 profile image
Rick Delpo • Edited

Hi there React Devs, I am a beginner and struggled with React last year for about one month and then I switched to Plain JS because React seemed over my head. I wrote a dev article here at dev.to/rickdelpo1/react-vs-plain-j... outlining 17 reasons why I switched back to Plain JS. Am I being too shorted sighted? Am I missing something about the value of React?

Collapse
 
peacechen profile image
Peace Chen

Plain JS is ok for simple apps, but you'll find yourself buried in a sea of spaghetti code as that app becomes more complex. React and other libraries exist because real-world production apps contain a lot of code that needs good structure and design patterns.

Collapse
 
rickdelpo1 profile image
Rick Delpo

Can't wait for the spaghetti !! Am not totally giving up on React.
Perhaps this is when I will appreciate React much more.
Thanks for the heads up.
PS: my post is not meant to be a negative rant

Collapse
 
officialbidisha profile image
Bidisha Das

See , what I feel is maybe you need to go through better courses or maybe educative.io Or frontendmasters. They are really good to follow and will guide you through.

You can only be great in React is you are really really good in JavaScript.

Collapse
 
rickdelpo1 profile image
Rick Delpo

ok thanks, now I see the problem is that I am not that great with JS because I am mostly a backend developer. So perhaps Plain JS is more my speed. But I still have a hankering for React so will search for easier tutorials on the topic.

Thread Thread
 
johnyepthomi profile image
JohnYepthomi • Edited

I feel the more familiar you get with JavaScript , it will make learning React easier for you. I taught myself web development on my own for the most part and I can say that I found react to be easy to understand as I had a better understanding of JS and also that I read through React Documentation and learn about details of component lifecycles etc and the rest follows.

The faster you familiarise yourself with reading Documentations , you will save yourself a lot of time and will improve your understanding of the library etc. I've adopted this habit and It's very very helpful.

Keep your JS fundamental strong and keep building on them gradually, Read MDN Documentation beyond just looking something up.

Embrace the ASYNCHRONOUS nature of JS.

You can do it.

Thread Thread
 
officialbidisha profile image
Bidisha Das

Can't agree more.

Thread Thread
 
rickdelpo1 profile image
Rick Delpo

Hey thanks John for ur response. I do agree that I can do it but now comes all the mega time to put in and the learning curve involved. Also I am a bit concerned about all the JS in React impacting my SEO.

Thread Thread
 
johnyepthomi profile image
JohnYepthomi

That's a business decision and ofcourse there's SSR but my point was about learning something new.

Collapse
 
ryannerd profile image
Ryan Jentzsch

Depending on your use case React (or any framework) can be overkill. I've been developing software for over 25 years and it took me some time to wrap my head around React. I developed mainly using OOP languages such as C#. React favors composition over inheritance and this was very frustrating at first. Keep at it. Eventually you'll get that "ah ha" moment and things will start falling into place.

Collapse
 
rickdelpo1 profile image
Rick Delpo

Thanks Ryan, then I'm not the only one struggling with React. Good to know. For me it is a real shock coming from 20 years of backend SQL development onto the frontend scene.

Collapse
 
olamphzy profile image
Olamphzy

I'm also new to React. Would love to learn