Skip to content

Allow React.ComponentType to be used for the as prop #99

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

Merged
merged 3 commits into from
Nov 3, 2021

Conversation

Gibbo3771
Copy link
Contributor

Related to #89.

Allows passing of a Component to be used as well as any HTML 5 markup.

Example

<Viewport as={MyCustomComponent} ></Viewport>

Stephen Gibson and others added 2 commits August 19, 2021 12:52
@aeagle
Copy link
Owner

aeagle commented Oct 30, 2021

@Gibbo3771 I've suggested some modifications in a PR to your fork to keep core-types framework agnostic - brawcode#1

@Gibbo3771
Copy link
Contributor Author

Thanks for the input Allan, I've incorporated your suggestions as they are much cleaner.

@aeagle aeagle changed the base branch from master to release/v0.3 November 3, 2021 11:19
@aeagle aeagle merged commit e0a028c into aeagle:release/v0.3 Nov 3, 2021
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.

2 participants