-
Notifications
You must be signed in to change notification settings - Fork 0
Modal #25
New issue
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
Modal #25
Conversation
}, | ||
[1] | ||
); | ||
const fns = React.useMemo(() => getModal, [1]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
挖草,这个1是什么东西
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个没必要吧
const useModal = () => { | ||
console.log('1'); | ||
const modalRef = React.useRef<any>(); | ||
const [open, setOpen] = useState(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个open有什么用,后面好想没用到
No description provided.