Hacker News new | ask | show | jobs
by kilburn 2218 days ago
I like the "your code calls libraries, frameworks call your code" description.

React is a library because you can have websites with as many render roots as you want. You can use it only for small parts of the site/app, control all of the props from the outside, etc.

People use it as a framework because they take the SPA route with a single root. Usually a bundler even generates the HTML file for them, tying the entire app to a single render call.