0

This way it's working

  <FormattedMessage id={'idName'}/> 

This way it's not ><

<FormattedMessage id={idVariable}/>

Throwing this error :

Uncaught Invariant Violation: [React Intl] An id must be provided to format a message.

When I console.log(idVariable) it gaves me the correct id I don't get it.

Any help ?

JolHaricot
  • 23
  • 5

0 Answers0