We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以下面代码为例:
import { useState } from 'react'; const App = () => { const [count, setCount] = useState(0); const addCount = () => { setCount((c: number) => c + '1'); }; return ( <div> <button onClick={addCount}>Add Count</button> <p>{count}</p> </div> ); }; export default App;
类型编译成功,没有抛出错误
The text was updated successfully, but these errors were encountered:
No branches or pull requests
以下面代码为例:
类型编译成功,没有抛出错误
The text was updated successfully, but these errors were encountered: