Responsive nav bar without code duplication

I want to create responsive nav bar without code duplication and conditional rendering (jsx). What is general strategy to make it work?

I attach picture of what I want to achieve.
1 - logo
2 - nav links
3 - social buttons

On mobile nav links should be hidden in burger menu
image.png
Was this page helpful?