Created
September 19, 2016 06:32
-
-
Save martinandert/b93e55d05ddc5cf0eab7529874bac974 to your computer and use it in GitHub Desktop.
New react-translate-component API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before: | |
// All interpolations are provided directly as props. | |
<Translate content="greeting" firstName="Peter" /> | |
// After: | |
// Interpolations are provided via the new `with` prop. | |
<Translate content="greeting" with={{ firstName: "Peter" }} /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment