Skip to content

Instantly share code, notes, and snippets.

View BAYiTUPAi's full-sized avatar

Jerry Warner BAYiTUPAi

  • Self-employed
  • Madison, WI and Bali, Indonesia
View GitHub Profile
@BAYiTUPAi
BAYiTUPAi / App.tsx
Created July 17, 2022 07:22
Demonstrates ionic-react bug when passing props and using the /:tab(name) feature
const App: React.FC = () => {
const [parentState, setParentState] = useState({value: 0})
console.log("PARENT STATE: ", parentState)
useEffect(() => {
setTimeout(()=>{
setParentState({value: parentState.value + 1})
}, 5000)