AdvancedTopic 90 of 104Software & Computing
Front-end frameworks
Component-based libraries build complex user interfaces.
In depth
React, Vue, Angular and Svelte compose UIs from components with state and declarative rendering (virtual DOM or compiled updates). Concepts: props, state management, routing, hooks/lifecycle, SSR/hydration. They speed development of complex apps but add tooling and bundle size.
Key points
- Component trees
- Unidirectional data flow
- TypeScript
ExampleA React component re-renders when its state changes.
What is Front-end frameworks?
Component-based libraries build complex user interfaces.
Why is it important to understand front-end frameworks?
Front-end frameworks help build large interfaces from reusable components, which keeps complex applications manageable.
What is a component?
A reusable piece of interface with its own structure and behaviour, which can be combined to build larger screens.
Why use a framework instead of plain JavaScript?
It provides structure, state management and tools that reduce repetitive code, though it adds learning and maintenance cost.
How is Front-end frameworks used in practice?
Typical applications include building a dashboard with reusable chart and table components, managing the state of a form with many fields and creating a single-page app that updates without reloading the page.
What should I learn before Front-end frameworks?
Study "Web development" first (topic 89 of 104 in Software & Computing). It covers the groundwork this topic builds on.
What are the key points of Front-end frameworks?
Component trees. Unidirectional data flow. TypeScript.
Can you give an example of Front-end frameworks?
A React component re-renders when its state changes.
What comes after Front-end frameworks?
The next topic is "Back-end development", which builds directly on this one.
How difficult is Front-end frameworks?
It is classed as Advanced in Software & Computing (topic 90 of 104). It is an advanced topic. It assumes you are comfortable with the intermediate topics in Software & Computing.