aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Button.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-02-20 23:36:30 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commit9013ea38ca549245442ef18aac199f9431973b60 (patch)
tree80bf933866e9ed8fcc8bf9527e243d7cb6cff93b /vnext/src/components/Button.js
parent5e73cff8aa8d7b514933413fbeb9ea37d1153ecb (diff)
Refactor memo components
Diffstat (limited to 'vnext/src/components/Button.js')
-rw-r--r--vnext/src/components/Button.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/vnext/src/components/Button.js b/vnext/src/components/Button.js
index 4152108b..18cab0a7 100644
--- a/vnext/src/components/Button.js
+++ b/vnext/src/components/Button.js
@@ -2,8 +2,10 @@ import React from 'react';
import './Button.css';
-export default function Button(props) {
+function Button(props) {
return (
<button className="Button" {...props} />
);
}
+
+export default React.memo(Button);