React js - how to make a component context

Viewed 48

How do i make a react component context?

I manage to make it working, but happens that i`m unable to achieve this by the lack of understanding react.

I'll share my code. I want to do a 4 page components, apearing inside the main page. And as soon as i click on a new link, the set of 4 pages, change to a new set. But not using routing, only using context.

Is that possible? Link to sample on code sandbox: Codesandbox example

1 Answers
Related