Update imports for TaxReturn abstraction.
[ustaxviewer.git] / src / index.tsx
1 import { render } from 'solid-js/dom';
2 import { Form1040, FilingStatus, Schedule2, TaxReturn, W2 } from 'ustaxlib/fed2019';
3
4 import { Person } from 'ustaxlib/core';
5
6 import App from './App';
7
8 const tr = new TaxReturn();
9 tr.addForm(new Form1040({ filingStatus: FilingStatus.Single }));
10 tr.addForm(new W2({
11 employer: 'Employer',
12 employee: Person.self('Robert'),
13 wages: 130000,
14 fedIncomeTax: 2500
15 }));
16 tr.addForm(new Schedule2);
17
18 render(() => <App tr={tr} />, document.getElementById('root'));