perf: add memo to react components

This commit is contained in:
SethBurkart123
2024-02-04 21:13:56 +11:00
parent 629a88a463
commit f5dfba2872
8 changed files with 25 additions and 15 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { memo } from "react";
import { useSettingsContext } from "../SettingsContext";
import "./Slider.css";
@@ -24,4 +25,4 @@ const Slider: React.FC<SliderProps> = ({ state, onChange }) => {
);
};
export default Slider;
export default memo(Slider);