From the course: Build Modern Web Apps with React, Hooks, State Management, and APIs Using Vite or Next.js

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Core philosophies of React

Core philosophies of React

Welcome back. In this video, we'll discuss the core philosophies of React. React is declarative. It means you can craft your UI the way you want, and React handles how it will happen behind the scenes. For example, you want to update value of an input field using React's state hook. How the value updates and is shown on the UI is handled by React. React is component-based. React encourages developers to create component-based UIs. In fact, every screen or element on the UI is a component. Component gives us the advantage of encapsulation and reusability. For example, you want to create a navbar component. You have created it once and now you want to use the same component across all of your other projects. You just have to import that navbar file in your other project and you can directly use that component in your other project. If you are worried about components right now, don't be. We'll discuss everything in great detail in the coming lessons. In React, you learn it once and you…

Contents