Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> React is a framework though.

framework vs library -- how would you define them?



Your code calls a library; a framework calls your code.


That sounds nice but it’s not that simple. In the case of react you are doing both. You are importing functions like hooks and render. Then you pass render a function that then gets called by react.




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

Search: