Closed craigdanj closed 4 years ago
I was thinking we could use a hook version of the withText HOC. So developers who wish to use hooks can do something like:
const firstName = useText('profile.user.firstName')
Fixed by https://github.com/synacor/preact-i18n/commit/a451350292148d1332a0321eb5bac34c076c2630 and released in 2.1.1-preactx.
2.1.1-preactx
It would be good to have this officially documented.
I was thinking we could use a hook version of the withText HOC. So developers who wish to use hooks can do something like:
const firstName = useText('profile.user.firstName')