MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / App

Function App

calendar-component/src/App.tsx:5–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { useState } from 'react';
4
5function App() {
6 const [value, setValue] = useState(dayjs('2023-11-08'));
7
8 return (
9 <div className="App">
10 <Calendar value={value} onChange={(val) => {
11 setValue(val)
12 }}></Calendar>
13 </div>
14 );
15}
16
17export default App;

Callers

nothing calls this directly

Calls 1

useStateFunction · 0.90

Tested by

no test coverage detected