📌  相关文章
📜  按下按钮时反应钩子组件重新呈现 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:48.507000             🧑  作者: Mango

代码示例1
const Button = () => {
  console.log("Button Rendered!");
  window.alert("Button Rendered");
  return ;
};

const TextInput = () => {
  const [textInput, setTextInput] = useState("Hallo");
  const onChangeInput = useCallback(
    (e) => {
      setTextInput(e.target.value);
    },
    [textInput]
  );
  return (
      
  );
}


export default function App() {
  return (
    
); }