Function useChromeState

React hook returning the current chrome state, re-rendering on change.