feat: first draft
This commit is contained in:
23
src/App.tsx
Normal file
23
src/App.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { useReducer } from 'react'
|
||||
|
||||
import { useLoadTrainSchedule } from './hooks/useLoadTrainSchedule'
|
||||
|
||||
import { initialState, reducer } from './state'
|
||||
|
||||
import './App.css'
|
||||
|
||||
function App() {
|
||||
|
||||
const [state, dispatch] = useReducer( reducer, initialState,);
|
||||
|
||||
useLoadTrainSchedule(state, dispatch);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
<textarea value={JSON.stringify(state)}></textarea>)
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default App
|
||||
Reference in New Issue
Block a user