refactored rerendering speed

This commit is contained in:
Fedor Katurov 2020-01-16 11:49:24 +07:00
parent b6bf317649
commit 69d1d749cf
32 changed files with 144 additions and 2045 deletions

View file

@ -1,10 +1,10 @@
import React from 'react';
import React, { memo } from 'react';
import { UserLocation } from '~/components/UserLocation';
import { DistanceBar } from '~/components/panels/DistanceBar';
export const TopLeftPanel = () => (
export const TopLeftPanel = memo(() => (
<div className="status-panel top left">
<UserLocation />
<DistanceBar />
</div>
);
));