Skip to main content

One post tagged with "Library"

View All Tags

Library vs Framework: Understanding the Difference and Why React is a Library

ยท 5 min read
Anand Raja
Senior Software Engineer

๐Ÿ” The Fundamental Differenceโ€‹

Control Flow Principleโ€‹

  • Library: You call the library - You control when and how to use it
  • Framework: The framework calls you - It controls the application flow via Inversion of Control (IoC)
Library Pattern:          Framework Pattern:
Your Code โ†’ Library Framework โ†’ Your Code
(You control) (Framework controls)