Skip to content

Commit

Permalink
specify jest environment uses jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
rrigato committed Nov 4, 2023
1 parent eaa4763 commit d584e03
Show file tree
Hide file tree
Showing 5 changed files with 490 additions and 4 deletions.
7 changes: 7 additions & 0 deletions static/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react';

export function App(){
return(
<h1>react initial setup</h1>
);
}
3 changes: 2 additions & 1 deletion static/js/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
import { App } from '../App.jsx';



const root = createRoot(
document.getElementById('app-entry-point')
);
root.render(<h1>react initial setup</h1>);
root.render(<App/>);
Loading

0 comments on commit d584e03

Please sign in to comment.