Hacker News new | past | comments | ask | show | jobs | submit login

https://reactjs.org/ says right on the front page: "Build encapsulated components that manage their own state, then compose them to make complex UIs."

Components managing their own state is a textbook definition of OOP.




Encapsulation is not equivalent to OOP. If it is, then why do we have two separate terms for the same thing?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: