We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I am migrating a js project that uses react-i18nify to Typescript. In many cases in the app I see the developer is using the render prop like this:
<I18n render={() => {
But the Typescript type does not expose this prop:
export class I18n extends React.Component {}
Therefore you get a "Property 'render' does not exist on type" error.
Many thanks.
The text was updated successfully, but these errors were encountered:
I'm not sure if this is right, but this seems to suppress the errror:
export interface I18nRender { render: () => JSX.Element } export class I18n<T extends I18nRender> extends React.Component<T, {}> { }
Sorry, something went wrong.
No branches or pull requests
Hi,
I am migrating a js project that uses react-i18nify to Typescript. In many cases in the app I see the developer is using the render prop like this:
But the Typescript type does not expose this prop:
Therefore you get a "Property 'render' does not exist on type" error.
Many thanks.
The text was updated successfully, but these errors were encountered: