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 ×1