'How to change only the content of a layout when you use Link router

I(m using react js and I want to know how can I change only the content of a layout ( navbar and sidebar) when you use Link router .What should I do?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source