esbuild TSX

This commit is contained in:
Brian Sakal
2023-05-02 23:28:42 -04:00
parent b45f44c25e
commit 631fa37785
4 changed files with 20 additions and 8 deletions
+13
View File
@@ -0,0 +1,13 @@
import { React } from "./React";
export function App({ numberOfTicks=5 }){
return (
<>
<div class="header">
<h1>Choose Probabilities</h1>
<h5>X-Axis = Ticks, Y-Axis = Underlying Price</h5>
</div>
<div class="chart"></div>
</>
);
}
+4
View File
@@ -0,0 +1,4 @@
import { createElement } from "inferno-create-element";
import { Fragment } from "inferno";
export const React = {createElement, Fragment};
+2 -7
View File
@@ -1,11 +1,6 @@
import { render } from "inferno";
import { createElement } from "inferno-create-element";
const React = {createElement};
import { App } from "./App";
import { React } from "./React";
function App(){
return (
<h1>Hello Binomial</h1>
);
}
render(<App />, document.getElementById("app"));