Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
koes337222d@AlgoRythm I think most people would call it a library. Not that it really matters how you call it.
-
kiki35245222dgood luck mate. React costed me six years of my life before I realized it was fundamentally flawed. I now use vanilla JS for everything, and I couldn't be happier
-
Hazarth9472222d@koes every framework is a library, but not every library is a framework. Strange debate imo
-
Lensflare17039222d@kiki I wonder how many years it will take for you to realize that JS is fundamentally flawed 😆
-
Lensflare17039222d@fumey
Ah, the joys of learning to code from the very beginning. I have fond memories of that time! And I envy you a little. -
kiki35245222d@Lensflare we're stuck with it on the frontend (wasm is out bc no DOM access), so it doesn't matter. If you want to do frontend, you have to use JS. Also, JS has precedent in doing complex things — Look at Google Maps. React doesn't have that. There is no proof you even can do really complex things with react.
-
Lensflare17039222d@kiki Well, you were talking about things being fundamentally flawed. Having no other choice doesn‘t change that.
-
Ranchonyx10628221dI'm genuinely happy you found something that amazes you.
I've tried react, but nowadays, similar to Kiki, I've switched back to vanilla JS/CSS/HTML without fancy stuff. -
fumey27221d@kiki I’ve been so hesitant. With react I thought I had finally made a good choice, and now you’re telling me it’s flawed! how is react flawed? 😥
It seems to be working fine for me??
The problem with using plain JavaScript is that you have to write document.getElementById a bunch of times whereas with react the html is right there in the same file as the JavaScript. It’s so cool -
kiki35245220d@fumey because react insists ui elements hierarchy and data flow hierarchy are the same thing, while on the web they’re not — there is no data flow hierarchy on the web. You fetch data and modify it in place. Also, react plays with pseudo pure functions while web is inherently stateful. My vanilla js using querySelectors all over the place is faster than anything I’ve ever seen written in react
-
kiki35245220d@fumey this is the sugar I use:
const qs = (sel, root = document) => root.querySelector(sel)
const wire = (sel, value, root = document) => qs(sel, root).innerText = value
Those two make up a huge chunk of my frontend code
I’m new to coding. I decided to pick JavaScript to learn how to code. For a while I was confused as I couldn’t grasp the fact that jQuery wasn’t a language of its own even though multiple people on devRant told me it wasn’t (or was?)
Anyway thanks for baring with me. I’ve decided to drop jQuery. It seems kind of outdated even though a new version of the library was added quite recently.
I’m now delving into ReactJs. Some people say it’s a framework, others say it isn’t. Again one of those confusing debates which is beyond me. Anyways I’m amazed at how easily I can get a basic web page up and running with React. So far I’ve only managed to launch an application using the create-react-app command in the command box. Oh and I’ve also been able to add a button to the html with a counter increment.
Fun times ahead!
rant
jquery react javascript