From 380a5b3c8a06541d19e66ec0d66216030f37f961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Behrendt?= Date: Mon, 26 Feb 2018 18:15:06 +0100 Subject: [PATCH] Use injectIntl from react-intl-phraseapp --- src/App.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/App.js b/src/App.js index f12f9cb..1f5b9ce 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import {FormattedMessage} from 'react-intl-phraseapp'; +import { FormattedMessage, injectIntl } from 'react-intl-phraseapp'; import logo from './logo.svg'; import './App.css'; @@ -13,13 +13,13 @@ class App extends Component {

+ id="welcome.text" + defaultMessage={`We hope this example will help you integrate PhraseApp into your react app using react-intl`} + />

); } } -export default App; +export default injectIntl(App);