小编Kis*_*ori的帖子

shouldComponentUpdate is not never called

Please have a look at my code. I try to limit re-render of given stateless component but doing this found that shouldComponentUpdate is never called. I have removed wrapper from styledComponents (what was reported to be a case for someone before) but still is definitely not called. Besides all, one could write an article on catches of this functions

import React from 'react';
import GoogleSearchForm from './RenderGoogleSearchForm.js';
import ButtonWithMessage from './ButtonWithMessage.js';
import styled from 'styled-components';

export default class RenderTableOverHead extends …
Run Code Online (Sandbox Code Playgroud)

reactjs

5
推荐指数
1
解决办法
3216
查看次数

标签 统计

reactjs ×1