tissue/resources/assets/js/checkin.tsx

7 lines
327 B
TypeScript
Raw Normal View History

2020-05-17 17:11:35 +09:00
import * as React from 'react';
import * as ReactDOM from 'react-dom';
2020-08-17 16:00:04 +09:00
import { CheckinForm } from './components/CheckinForm';
2020-08-17 16:00:04 +09:00
const initialState = JSON.parse(document.getElementById('initialState')?.textContent as string);
2020-08-17 16:08:35 +09:00
ReactDOM.render(<CheckinForm initialState={initialState} />, document.getElementById('checkinForm'));