Connect elements with lines
React hook that works much like useState, but it encodes the state and saves it in a parameter in the URL