re: What's the difference between a library and a framework? VIEW POST

FULL DISCUSSION
 

Frameworks call your code and enforce semantic constraints the framework authors baked into it. I think of frameworks as weird turing machines.

Libraries on the other hand are more composable and let the programmer decide the semantics as long as the semantics doesn't violate the invariants that the library expects.

React in this sense is a framework. It definitely has its own semantics that programmers must conform to. It's another weird turing machine.

code of conduct - report abuse