setup
This commit is contained in:
parent
5999928d23
commit
33ca8c7550
13 changed files with 593 additions and 56 deletions
19
test/base.test.tsx
Normal file
19
test/base.test.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
describe("JSX", () => {
|
||||
it("should render basic", () => {
|
||||
const Component = () => {
|
||||
console.log("Component");
|
||||
return (
|
||||
<div>
|
||||
<span>First</span>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
const rendered = (
|
||||
<div>
|
||||
<span>Second</span>
|
||||
<Component />
|
||||
</div>
|
||||
);
|
||||
console.log(JSON.stringify(rendered, null, 2));
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue