Browse Source

react 3 hw

Olga1108 4 năm trước cách đây
mục cha
commit
bd861fee63
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 1 1
      .eslintcache
  2. 2 2
      src/components/Button/Button.jsx

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
.eslintcache


+ 2 - 2
src/components/Button/Button.jsx

@@ -1,10 +1,10 @@
 import React from 'react';
 import './button.css';
 
-const Input = ({ type, buttonName }) => {
+const Button = ({ type, buttonName }) => {
   return (
     <button className="btn" type={type}>{buttonName}</button>
   )
 }
 
-export default Input;
+export default Button;