Skip to content
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

Allow built-in components in render prop #23

Closed
tricoder42 opened this issue Jun 18, 2017 · 0 comments
Closed

Allow built-in components in render prop #23

tricoder42 opened this issue Jun 18, 2017 · 0 comments

Comments

@tricoder42
Copy link
Contributor

Just a small nitpick.

It's possible to use React.Component to render translation: <Trans render={Component}>...</Trans>, but built-ins can be passed as elements only: <Trans render={<h1 />}>...</Trans>.

Proposal: <Trans render="h1">...</Trans>

It's like 4 chars difference, but nice to have 😸

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

No branches or pull requests

1 participant