瀏覽代碼

react 3 hw

Olga1108 4 年之前
父節點
當前提交
bd861fee63
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      .eslintcache
  2. 2 2
      src/components/Button/Button.jsx

File diff suppressed because it is too large
+ 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;