Framework

A framework is a structured foundation for building applications that provides ready-made architecture and calls your code at the right times. Examples include React, Django, and Spring.

General Programming

The key difference from a library is control: with a library you call its code, but with a framework the framework calls your code, following its own structure and rules.

Examples

JavaScript

// React framework: you write a component,
// the framework decides when to render it
function App() {
  return <h1>Hello</h1>;
}

Output:

Renders: Hello

See also

Back to the Dictionary