Updating linear gradient using JavaScript (React) - Theo's Typesafe Cult