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
onChange={(value) => onCheckedChangeRef.current(cartItem, value)},onChange事件必须用一个函数包裹住传进来的onCheckedChangeRef.current函数,虽说在你这个场景中这样做合适,但是若有场景onChange={onCheckedChangeRef.current}就无法实现
The text was updated successfully, but these errors were encountered:
其实也没差吧,都是一样的。你不包裹直接把 onCheckedChangeRef.current 当作 onChange 的回调当然也可以,那就没办法传入 cartItem 而已。
Sorry, something went wrong.
No branches or pull requests
onChange={(value) => onCheckedChangeRef.current(cartItem, value)},onChange事件必须用一个函数包裹住传进来的onCheckedChangeRef.current函数,虽说在你这个场景中这样做合适,但是若有场景onChange={onCheckedChangeRef.current}就无法实现
The text was updated successfully, but these errors were encountered: