Renderer: Fix widget updating

Summary:
Unified both componentDidUpdate functions

Test Plan:
Load test.html
Change x-range of the interactive-graph to [-20, 40]
See both graphs change ranges

Auditors: alpert, michelle