Hacker News new | ask | show | jobs
by qudat 1332 days ago
> React is a framework though.

framework vs library -- how would you define them?

1 comments

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.