My component is:
export default function TopHalf(props) {
const [startDegrees, setStartDegrees] = useState(0)
useEffect(() => {
const centerPoint = { x: dim.width / 2, y: dim.height / 4 }
setCenter(centerPoint)
setInterval(() => {
console.log('startDegrees', startDegrees)
setStartDegrees(startDegrees + 5)
}, 500)
}, [])
...
return (
<HalfView style={{ top: 0, position: 'absolute', width: '100%' }} >
{props.participants?.map(circularParticipants)}
</HalfView>
)
}
so you can see that startDegrees
should increase by 5
every half second. But it stays at 0
when I log it out.