working react capacitor