FRONT-END FRAMEWORKS - OVERVIEW
Popular frameworks for building complex UIs:
React, Vue, Angular.
They use components, state management, routing, and tooling.
1. COMPONENT ARCHITECTURE
- Reusable, encapsulated UI units
- Props/input, state, lifecycle
2. REACT BASICS
- JSX syntax
- Hooks: useState, useEffect, custom hooks
- Example:
const [count, setCount] = useState(0);
<button onClick={() => setCount(count+1)}>
Count: {count}
</button>
3. VUE BASICS
- Template syntax, directives (v-if, v-for, v-bind)
- Reactive data and computed properties
- Single File Components (.vue)
4. ANGULAR BASICS
- TypeScript, modules, decorators (@Component)
- Services and DI
- Example:
@Component({ selector: 'app-root', template: '<h1>{{title}}</h1>' })
export class AppComponent { title = 'App'; }
5. BUILD & TOOLING
- npm, yarn, pnpm
- Bundlers: webpack, Vite
- Linters, formatters, CI/CD integration