render触发的条件 第一次挂载 state改变 props改变 避免不必要的render 利用shouldComponentUpdate钩子函数,通过它的返回值react会决定要不要render,返回false不会渲染