📜  usestate hook - Javascript 代码示例

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

代码示例6
1:  import React, { useState } from 'react'; 2:
 3:  function Example() {
 4:    const [count, setCount] = useState(0); 5:
 6:    return (
 7:      
8:

You clicked {count} times

9: 12:
13: ); 14: }