Return to Last selected tab

Hi,

I’ve got an application built with Meteor, React and Semantic UI. There is a tabbed screen. Everything is working as expected except I would like to persist the last selected tab when navigating away from the tabbed screen to another route and back to the tabbed screen.

Looking at the available options I could use Session, ReactiveVars or perhaps even persist parts of the UI state in a collection.

What would be the best approach?