美文网首页
面试总结1

面试总结1

作者: camy | 来源:发表于2021-10-21 12:23 被阅读0次

1 React 生命周期

2 hooks(useState, useEffect,

  • useContext,=> createContext, useContext()
  • useMemo,
    Returns a memoized value.
    , useMemo runs during rendering. Don’t do anything there that you wouldn’t normally do while rendering.
  • useReducer,
    An alternative to useState. Accepts a reducer of type (state, action) => newState, and returns the current state paired with a dispatch method. (If you’re familiar with Redux, you already know how this works.)
    image.png

[Redux] creates one global state container which is above your whole application and is called a store.

[useReducer] creates an independent component co-located state container within your component.

  • useRef, ref=input, createRef,ref.current.validate()
  • useCallback
    Returns a memoized callback.
    useful when passing callbacks to optimized child components that rely on reference equality to prevent unnecessary renders (e.g. shouldComponentUpdate).
    useCallback(fn, deps) is equivalent to useMemo(() => fn, deps).

2.1 Fuction component vs class component

3 redux及项目中的使用

React is a library used to build user interfaces.
Redux - state management library for javascript applications.

image.png

React-redux official redux Ui binding library for react.

4 AWS pipeline

5 test 前后端

6 RDS and non-relational database

  1. Data Strucutre
  • NoSQL databases are designed to handle the more complex, unstructured data, (such as texts, social media posts, photos, videos, email).
  • Relational databases were built during a time that data was mostly structured and clearly defined by their relationships.
  1. Scaling
  • Relaltional databases require a single server to host the entire database,
    3 Performance
    关系型数据库:缺点: 读写性能比较差,尤其是海量数据的高效率读写;

7 JWT

  • header
  • payload, 由我们需要发送的数据内容构成
  • Singnature,签名由上面我们得到的header和payload的base64的字符串,通过.连接起来,然后使用HS256算法进行加密得到。


    image.png
  • 缺点:由于jwt的payload是使用base64编码的,并没有加密,因此jwt中不能存储敏感数据。
    https://chengandpeng.github.io/2016/04/15/jwtvscookie/

8 React function compoent vs Class compoent

相关文章

  • 求职准备

    1:知识点总结 2:项目总结 3:常见面试问题总结 4:公司筛选 5:安排面试行程 6:面试!!!

  • 阿里腾讯头条美团等iOS面试总结

    阿里iOS面试总结 头条iOS面试总结 腾讯iOS面试总结 百度iOS面试总结 美团iOS面试总结

  • 面试总结1

    写一个排序算法(冒泡、简单排序和二叉排序) hashmap,什么时候扩容 mysql的搜索引擎InnoDB、MYI...

  • 面试总结(1)

    Django自定义模板 在app应用下创建templatetags文件夹,如:users/templatetags...

  • 面试总结(1)

    ?xml version="1.0" encoding="UTF-8"? 1. @protocol 和 categ...

  • 面试总结1

    性能优化 [https://github.com/togethter/learnDic/blob/master/i...

  • 面试总结1

    1 React 生命周期 2 hooks(useState, useEffect, useContext,=> c...

  • java script 1

    1 史上最全的Javascript面试题总结 史上最全的Javascript面试题总结 1 未声明和未定义? 未声...

  • 2021-03-09

    面试总结 1.不要因为对方当时的否定而自降身份,若面试不匹配,尽量给面试官快速结束面试的理由,过后总结技能+经验+...

  • 面试问题整理

    面试总结 标签(空格分隔): 面试 XX公司面试总结 1.自我介绍2.做过的项目,遇到的问题,如何解决,能否有更好...

网友评论

      本文标题:面试总结1

      本文链接:https://www.haomeiwen.com/subject/cjffaltx.html