ByteupTech_interview Flashcards

(17 cards)

1
Q

difference react local & global state?
how use it in Redux/Context?

A
  • React: state, props, jsx,…
  • Redux
  • Context API
  • scalability: kha nang mo rong
  • prop drilling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

common performance issues & how to prevent it

A
  • re-render
  • first pain
  • break page/white page
  • terrible UX
    Fixed: react.memo, useMemo, useCallback, virtual DOM, code splitting, lazy loading
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

benefit of using NextJS

A

SEO
SSR
routing, file-based routing
getServerSideProps, getStaticProps
incremental static regeneration

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

describe case that SSR improve your app

A

first pain
time to interactive
e-commerce
SEO
performance

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

how to build reusable components library
from scratch?

A

atomic design
story book
composition
DRY
theme consistency
design system

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

how to handle styling in large app?
what are the pros and cons of CSS, SASS, tailwind, bootstrap,…

A

SCSS styling
utility class
tailwind
emotion
scalability
BEM

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

how to integrate 3rd party platform API and handle failure?

A

fetch/axios
try/catch
error boundaries
fallbacks
toast notification
swagger

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

the difference between REST and GraphQL? choose one and why?

A

endpoint based vs query based
over fetching
under fetching
graph schema + apollo client

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

what is your approach to testing you application?
what do you test and what tools do you use?

A

Jest
React testing library
unit test
snapshot test
mock API
coverage

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

describe you bug you fixed that required deep investigation and how to you approach it?

A

dev tools
console.log
network tab
breakpoint & watch each code line
redux dev tools
error boundaries

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

some FE techniques optimization your applied?

A

-lazy loading: skeletion wrapped, paging, scrolling page
-image optimization
- code splitting
- SSR
- debounce
- memoization
- bundle analyzer

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

How to use measure the performance of web application?

A
  • lighthouse
  • chrome dev tools
  • core web vitals
  • TTI
  • FCP
  • JS profiling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

If the BE API is unstable and return inconsisten data. how could handle that in the FE?

A
  • data validation
  • fallback
  • default values
  • error state
  • retry
  • monitoring
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

If the designer update the UI special mid-sprint. How could you ensure smooth collaboration & delivery?

A
  • agile
  • sprint planing
  • communication
    -version control
  • component re-use
  • flexibility
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Your task is improve the performance of product listing page that loads thousands of items. what’s your plans

A
  • virtual scroll
  • pagination
  • lazy load
  • skeleton UI
  • server-side pagination
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

[SOFT SKILLS] How to you handle disagreements with BE during API integrate?

A
  • clear communication
  • documentation
  • API contract
  • swagger
  • team alignment
17
Q

[SOFT SKILLS] Describe a time when you had to learn a new tool/tech. How do you approach it

A
  • ask support other member
  • self-learning
  • documentation
  • online courses
  • sandbox project
  • adaptability