Skip to content
  1. memo
  • 避免多余渲染,重复计算,重复创建对象

  • useMemo可以缓存数据或ui组件, 第一个参数是函数,该函数返回一个值或者ui组件

image-20231218104917927