I know there is the similar question here:
React-Intl How to use FormattedMessage in input placeholder
But I am using TypeScript.
this code:
import { injectIntl, intlShape } from 'react-intl';
ChildComponent.propTypes = {
intl: intlShape.isRequired
}
does not work for me.
How to set this place holder with formatted message.
<InputPass
placeholder="Enter password"
/>