import React, { useState } from 'react'; import { PollingSubscribers } from './PollingSubscribers'; import { RegularPolling } from './RegularPolling'; import { SubscrtionTrigger } from './SubscrtionTrigger'; export default function App() { const [checked, setChecked] = useState(true); const toggle = (e: React.ChangeEvent) => setChecked(() => e.target.checked); return (

Hello, Polling Legend

Click this buttons and see results in the console

Below are components subscribed to polling

); }