React-intl, use api with Typescript
问题 I would like to use the formatMessage function of the react-intl API to insert a message as placeholder, but I can't figure out the right way to access this function. Here is a simplified version of what I have : //index.tsx <IntlProvider locale={`fr-FR`} messages={messages_fr}> <NameForm/> </IntlProvider>, //nameForm.tsx interface NameFormProps { intl?: InjectedIntlProps, } export default injectIntl(NameForm); class NameForm extends React.Component<NameFormProps, {}> { render() { let