上一页 1 ··· 342 343 344 345 346 347 348 349 350 ··· 498 下一页
摘要: Get 'injectIntl' from 'react-intl', it is a high order componet. We need to wrap our component into 'injectIntl': It will inject 'intl' prop into our 阅读全文
posted @ 2017-07-31 21:02 Zhentiw 阅读(291) 评论(0) 推荐(0)
摘要: Using the react-intl FormattedMessage component, we’ll learn how to render content conditionally in our messages based on a number provided as a prop. 阅读全文
posted @ 2017-07-31 15:53 Zhentiw 阅读(240) 评论(0) 推荐(0)
摘要: Simple Auth service: Using Observable is a easy way to implement reactive application. Create a BehaviorSubject and then convert subject to Observable 阅读全文
posted @ 2017-07-30 18:18 Zhentiw 阅读(269) 评论(0) 推荐(0)
摘要: Using a react-intl FormattedNumber component, we'll pass a Number and a few additional props in order to render the correct separator and currency sym 阅读全文
posted @ 2017-07-28 20:18 Zhentiw 阅读(334) 评论(0) 推荐(0)
摘要: Given a date, we’ll use the react-intl FormattedRelative component to render a date in a human readable format, such as “2 days ago”, in various langu 阅读全文
posted @ 2017-07-28 20:09 Zhentiw 阅读(306) 评论(0) 推荐(0)
摘要: Using the react-intl FormattedDate and FormattedTime components, we’ll render a JavaScript Date into both a date string and a time string in different 阅读全文
posted @ 2017-07-28 20:01 Zhentiw 阅读(745) 评论(0) 推荐(0)
摘要: In this lesson, we’ll use the react-intl FormattedHTMLMessage component to display text with dynamic values along with other HTML elements to create e 阅读全文
posted @ 2017-07-28 19:52 Zhentiw 阅读(694) 评论(0) 推荐(0)
摘要: Learn how to use react-intl to set dynamic values into your language messages. We’ll also learn how to pass in those values by using a values prop in 阅读全文
posted @ 2017-07-28 19:45 Zhentiw 阅读(389) 评论(0) 推荐(0)
摘要: We’ll install react-intl, then add it to the mounting point of our React app. Then, we’ll use react-intl helpers to load locales in our app, including 阅读全文
posted @ 2017-07-28 18:31 Zhentiw 阅读(346) 评论(0) 推荐(0)
摘要: For example, inside you component you want to import a file from two up directory: This becomes a little bit problematic because the component can be 阅读全文
posted @ 2017-07-28 02:30 Zhentiw 阅读(230) 评论(0) 推荐(0)
上一页 1 ··· 342 343 344 345 346 347 348 349 350 ··· 498 下一页