Frontend Engineering II Flashcards

1
Q

What is Reactive UI?

A

A UI approach where the interface updates dynamically in response to data changes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are some JavaScript/TypeScript libraries and frameworks for front-end development?

A

React, ViteJS, NextJS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Vite?

A

A build tool that provides a faster and leaner development experience for modern web projects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you create a new Vite project with React and TypeScript?

A

Run: npm create vite my-react-swc-ts-app, select React and TypeScript + SWC.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is SWC in Vite?

A

Speedy Web Compiler, which is 20x faster than Babel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you start a Vite project after installation?

A

Run: npm install, then npm run dev.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Progressive Web App (PWA)?

A

A web application that provides native app-like experiences, including offline functionality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you add PWA support to a Vite project?

A

Install vite-plugin-pwa and configure vite.config.ts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you enable a service worker in a Vite PWA project?

A

Run: npm run build, then npm run preview.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a service worker in PWA?

A

A script that runs in the background to handle caching and offline support.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What file is created when setting up a PWA in Vite?

A

manifest.webmanifest.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you add Tailwind CSS to a Vite project?

A

Run: npm install -D tailwindcss postcss autoprefixer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What file do you update to configure Tailwind CSS?

A

tailwind.config.js.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What directives must be added to index.css for Tailwind CSS?

A

@tailwind base; @tailwind components; @tailwind utilities;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is HTMX?

A

A JavaScript library that enables AJAX, CSS Transitions, WebSockets, and Server-Sent Events directly in HTML.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Perseus?

A

A Rust-based front-end framework similar to NextJS, built on Sycamore.

17
Q

What backend server does Perseus use by default?

A

Axum web server.

18
Q

What are the benefits of using Rust for web development?

A

Better performance, memory safety, and improved security.

19
Q

What is Tailwind CSS?

A

A utility-first CSS framework for rapid UI development.