Is React a Framework Or a Library ? 🤔

If You Are a Job Seeker In a Interview , How Do You Answer This Question.Ok Let's Consider The Different Between a Framework and a Library

Definition :

  • Library: is a collection of pre-written code that developers can use to optimize tasks.

  • Framework: is a comprehensive platform for developing software applications.

Control:

  • Library: Developer has control and calls the library code.

  • Framework: Framework has control and calls the developer's code.

By The Way

Despite being a library, React’s ecosystem can make it feel like a framework. Tools and libraries that are often used with React include.

React Router , Redux or MobX , Next.Js

While React itself is a library focused on the UI layer, the extensive ecosystem around it can give developers the experience of working within a framework. However, the core of React remains a library due to its modularity and flexibility.

What Do You Think ? Is React Act As a Library Or a Framework Upon to You ?

26
Subscribe to my newsletter

Read articles from Sandeepa Bandara Thennakoon directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Sandeepa Bandara Thennakoon
Sandeepa Bandara Thennakoon

I am a passionate Fullstack Developer and a Computer Science undergraduate at the University of Jaffna. I have gained valuable experience as a Front End Developer at CodSoft Company in India. Additionally, I have studied project management and software QA concepts from universities abroad. My skill set includes software testing and project management, complementing my fullstack development expertise.