Avoiding Derived State In React