Is there a neat way to have only one JS file, where different content is displayed(for example, page consist with a list of items), depending on where user clicks in React?