40 |
43 |
46 |
49 |
50 |
React Live Clock
51 |
Show Date/time for any timezone
52 |
53 |
54 | https://github.com/pvoznyuk/react-live-clock
55 |
56 |
57 |
58 |
61 |
62 |
63 |
64 |
65 | Home
66 |
67 | Test
68 |
69 |
70 |
74 |
75 |
76 | } exact={true} path="/" />
77 |
78 |
79 |
80 |
87 | `}
88 | title="Ticking clock in with custom format, custom class and styles">
89 |
94 |
95 |
96 |
102 | `}
103 | title="Ticking clock in timezone US/Pacific">
104 |
108 |
109 |
110 |
115 | `}
116 | title="Output specific date">
117 |
120 |
121 |
122 |
128 | `}
129 | title="The same date in timezone Australia/Sydney">
130 |
134 |
135 |
136 |
143 | `}
144 | title="Date in the past that ticking">
145 |
150 |
151 |
152 |
153 |
160 | `}
161 | title="Date in the future that ticking">
162 |
167 |
168 |
169 |
170 |
173 | date.replace('8', '7a')} format={'HH:mm:ss'} ticking={true} />
174 |
175 |
176 |
179 |
182 | console.log(date) // eslint-disable-line no-console
183 | }
184 | ticking={true} />
185 |
186 |
187 |
188 |
191 |
193 | console.log('READY') // eslint-disable-line no-console
194 | } />
195 |
196 |
197 |
204 |
207 |
208 |
211 |
212 |
215 |
216 |
217 |
224 |
225 |
226 |
227 |
228 |
229 |
232 |
233 |
234 |
235 |
238 |
239 |
240 |
241 |
244 |
245 |
246 |
247 |
250 |
251 |
252 |
255 |
256 |
257 |
258 |
);
259 |
260 | export default App;
261 |
--------------------------------------------------------------------------------
/src/example/Example.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {createRoot} from 'react-dom/client';
3 | import App from './App';
4 |
5 | const container = document.createElement('div');
6 |
7 | document.body.appendChild(container);
8 |
9 | const appRoot = createRoot(container);
10 |
11 | appRoot.render(