tissue/resources/assets/js/checkin.tsx
2020-08-17 18:17:38 +09:00

7 lines
317 B
TypeScript

import React from 'react';
import ReactDOM from 'react-dom';
import { CheckinForm } from './components/CheckinForm';
const initialState = JSON.parse(document.getElementById('initialState')?.textContent as string);
ReactDOM.render(<CheckinForm initialState={initialState} />, document.getElementById('checkinForm'));