Skip to content

Instantly share code, notes, and snippets.

@ywang04
Created June 9, 2020 09:09
Show Gist options
  • Save ywang04/9d3ab4075b741f49997b301b6d47f044 to your computer and use it in GitHub Desktop.
Save ywang04/9d3ab4075b741f49997b301b6d47f044 to your computer and use it in GitHub Desktop.
判断函数名在不在的最新写法
const handleChange = e => !disabled && onChange?.(e.target.value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment