improved react capacitor spec