Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Dynamic Routes in Class Component #132

Closed
dmamira opened this issue Apr 25, 2020 · 3 comments
Closed

How to use Dynamic Routes in Class Component #132

dmamira opened this issue Apr 25, 2020 · 3 comments

Comments

@dmamira
Copy link

dmamira commented Apr 25, 2020

I use class component in my project.
and I want to use dynamic routes but no examples are available.
How to use Dynamic Routes?

@aralroca
Copy link
Owner

@dmamira in order to use class components instead of functional components you can consume the translations using the withTranslation HOC:

https://github.com/vinissimus/next-translate#withtranslation

The other things are just the same than with functional components.

@dmamira
Copy link
Author

dmamira commented Apr 29, 2020

Thank you It works!!

@aralroca
Copy link
Owner

Nice 😊 I'm going to close this issue! Feel free to reopen or create another one if you have more doubts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants