Skip to content

Conversation

@webdevia
Copy link
Owner

@webdevia webdevia commented Dec 3, 2024

No description provided.

@webdevia webdevia merged commit f97a132 into main Dec 4, 2024

export const ModalForm = ({ visible = true, children }: ModalFormProps) => {
export const ModalForm = ({ visible = true, onClose, children }: ModalFormProps) => {
return (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут лучше if (!visible) {return null} потому что даже не успеем DOM построить и соответсвенно затратим меньше ресурсов

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants