Skip to content

AlanWei/fe-interview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Front-End Interview

Algorithm

Front-End Basic

FE_BASIC.md

JavaScript Basic

PROMISE.md

React Components Design

  1. Implement a Carousel component

What to test:

  • Components separation: Slider, Slide, Dots, Arrows
  • Props design: height, autoPlay, autoPlayInterval, vertical, animation, beforeChange, afterChange
  • Implementation
  1. Implement an Anchor(Affix) component

What to test:

  • remember to remain a placeholder component after make anchor component stick to top, because it will disrupt the old document flow from position: relative to position: fixed.
  • Implementation

Front-End Architecture

  1. What is the benefit of segregating backend and frontend?

Answer:

  • No more complex templates, both backend and frontend can gain more flexibility
  • Backend development and frontend development can do in pipeline based on the agreement of a set of mock APIs according to product requirements
  1. How to segregate backend and frontend with less pains?

Answer:

  • Add a better BFF (backend for frontend) driven middleware layer, mainly in nodejs, to speed up product development.
  • Middleware can do routing, caching, intl, customization.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published