Created
June 24, 2019 14:32
-
-
Save jaksm/3189f7dcf557d71504669bdc0a434c84 to your computer and use it in GitHub Desktop.
Hob Intl
This file contains hidden or 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
...imports | |
import IntlContext from "......./intl.context" | |
// Za class-based komponente | |
class BenefitCockpit extends Component { | |
static contextType = IntlContext; | |
render() { | |
return ( | |
<h1>{this.context.member.suggest.title}</h1> | |
) | |
} | |
} |
This file contains hidden or 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
import React, { useContext } from "react"; | |
import IntlContext from "......./intl.context" | |
const Breadcrumb = props => { | |
const context = useContext(IntlContext) | |
return (...some jsx) | |
} |
This file contains hidden or 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
{ | |
"member": { | |
"suggest": { | |
"title": "Write your...", | |
"labels": { | |
"info": "asdasd" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment