Skip to content

fix: Using If is not infering types and erroring - #3

Open
webbrain-one wants to merge 1 commit into
babur001:mainfrom
webbrain-one:webbrain/issue-2
Open

fix: Using If is not infering types and erroring#3
webbrain-one wants to merge 1 commit into
babur001:mainfrom
webbrain-one:webbrain/issue-2

Conversation

@webbrain-one

Copy link
Copy Markdown

Closes #2

Explicitly return null when the is prop is falsy to fix TypeScript
type inference errors and ensure children are only rendered when
the condition is truthy.
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.

Using If is not infering types and erroring

1 participant