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
-
@LicensedCrime I kinda like JSX. I’m working more with Vue these days but I just felt that JSX was more intuitive for me.
But hey, everyone’s different :) -
Since this component has no state change. It's better to write as a stateless function 🤖
-
It's good to learn about JS prototypes to see how it differs from object oriented slightly.
-
xprnio3757y@chrisrhymes One of the cooler things in regards to javascript's classes vs the prototype chain is that, when you create a constructor function, you're still able to fuck up by just calling it directly (messing up the context), whereas when you try to call a class as if it was a function, it'll give you an error. I thought that the class syntax in javascript was just pure sugar, and was transformed into a prototype chain on runtime, but I guess that's not the case. And I know that a `this instanceof ConstructorName` check can be added to the constructor functions, but being the lazy sob I am, I'd rather opt for the class syntax. It's also cleaner imho
React is actually pretty nice. Im probs saying this because it handles oop stuff like java would and im extremely fucking biased, but its a lot more enjoyable than angular.
Also if you get the joke in this pic (found in the react tutorial), hats off to you, it made me lol
rant