Learning React - Need resources
from Kelho@lemmy.ml to programming@programming.dev on 12 Apr 15:28
https://lemmy.ml/post/28499778

Hey folks!

I’m looking for some good resources, either video or written, to learn React.

As for background, I’m a relatively new programmer and I only used C & C++ and recently Python to build a Django application.

Any tips or pointers (unintentional pun) will be greatly appreciated! 👏

Thanks in advance!

#programming

threaded - newest

rbits@lemm.ee on 12 Apr 16:03 next collapse

The react website itself has a pretty good tutorial

react.dev/learn react.dev/learn/tutorial-tic-tac-toe

Endmaker@ani.social on 12 Apr 16:27 next collapse

Any tips or pointers (unintentional pun) will be greatly appreciated!

IMO the most important thing when it comes to frameworks like this is state management.

Once you truly understood it / know how to do it properly, you are good to go.

P.S. My guess is that React got its name because it reacts to changes in state

P.P.S. this documentary on React provides insights on its history

8263ksbr@lemmy.ml on 12 Apr 18:03 next collapse

Maximilian Schwarzmüller got a very good course on udemy. Just wait a bit for the next and frequent sale. It’s worth it.

Drekaridill@feddit.is on 12 Apr 19:42 collapse

I second this.

footfaults@lemmygrad.ml on 12 Apr 19:25 next collapse

This might be unpopular because I’m an old head, when jQuery was a must because of IE6, but I would maybe start out learning vanilla Javascript first, at least a little bit, before diving into React, just so that you have more background about Javascript rather than just experience in a single framework. I’m not saying do an entire application in vanilla JS first, but maybe do a simple TODO app or something very small with Flask (or equivalent) and some light JS on the frontend.

I see you used Django recently, the one thing about Django’s Form classes and Views is that it does a lot of the heavy lifting around form processing for you. Its super super awesome and gets all that annoying shit out of the way so you can deal just with application logic, but it might be worth dropping down to Flask or Node or something else where you don’t have form processing and building done for you, and do vanilla JS with that.

Then again I hate javascript and do almost all server side rendering in Python or Zig so take what I say with a grain of salt.

I’ve been writing web applications and just sprinking a tiny bit of JS in the apps, and have generally avoided the whole JS framework mess.

SatouKazuma@programming.dev on 12 Apr 21:39 collapse

What SSR libraries are there in Python? Asking as another back end guy who doesn’t know too much here.

footfaults@lemmygrad.ml on 12 Apr 23:14 collapse

Django, Flask, FastAPI

SatouKazuma@programming.dev on 13 Apr 01:07 collapse

Wait what? TIL.

footfaults@lemmygrad.ml on 13 Apr 01:26 collapse

SSR libraries

Let me clarify. I meant server side rendering as in the response is all generated server side.

NOT JavaScript SSR where parts of your JavaScript code run on the server side.

developer.mozilla.org/en-US/docs/Glossary/SSR

Kelho@lemmy.ml on 14 Apr 09:27 collapse

Thanks for the answers, everyone! I’ll be having a look at each suggestion this week! 🦾