Skip to content

Why not import { useTranslation } from 'next-translate' ? #714

Answered by aralroca
ffan0811 asked this question in Q&A
Discussion options

You must be logged in to vote

It is the easiest way to import only what you need. Even if webpack does treeshaking it ends up taking more kb than it should.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ffan0811
Comment options

Answer selected by ffan0811
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants