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

7 lines
327 B
TypeScript

import * as React from 'react';
import * as 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'));