Working react and mock