Improve performance of the map by using Pure Components
This commit is contained in:
parent
9bd5d5c9c8
commit
fe814718eb
6 changed files with 9 additions and 9 deletions
|
|
@ -23,7 +23,7 @@ export type SideBarProps = {
|
|||
export type SideBarState = {
|
||||
};
|
||||
|
||||
class SideBar extends React.Component<SideBarProps & Classes, SideBarState> {
|
||||
class SideBar extends React.PureComponent<SideBarProps & Classes, SideBarState> {
|
||||
constructor(props: SideBarProps & Classes) {
|
||||
super(props);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue