File tree Expand file tree Collapse file tree 5 files changed +15
-7
lines changed Expand file tree Collapse file tree 5 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 55 "check" : " prettier --check . && eslint"
66 },
77 "devDependencies" : {
8- "@types/react" : " ^18.2.48" ,
9- "@types/react-dom" : " ^18.2.18" ,
108 "eslint" : " ^9.13.0" ,
119 "eslint-plugin-react" : " ^7.37.1" ,
1210 "prettier" : " ^3.3.3"
1513 "@pyscript/core" : " ^0.6" ,
1614 "@reactpy/client" : " ^0.3.2" ,
1715 "event-to-object" : " ^0.1.2" ,
18- "morphdom" : " ^2.7.4"
16+ "morphdom" : " ^2.7.4" ,
17+ "preact" : " ^10.25.4"
1918 }
2019}
Original file line number Diff line number Diff line change 11import { DjangoFormProps , HttpRequestProps } from "./types" ;
2- import React from "react " ;
3- import ReactDOM from "react-dom " ;
2+ import React from "preact/compat " ;
3+ import ReactDOM from "preact/compat " ;
44/**
55 * Interface used to bind a ReactPy node to React.
66 */
Original file line number Diff line number Diff line change 11import { ReactPyDjangoClient } from "./client" ;
2- import React from "react" ;
3- import ReactDOM from "react-dom" ;
2+ import ReactDOM from "preact/compat" ;
43import { Layout } from "@reactpy/client/src/components" ;
54
65export function mountComponent (
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "esModuleInterop" : true ,
4+ "jsx" : " react-jsx" ,
5+ "jsxImportSource" : " preact" ,
6+ "target" : " esnext" ,
7+ "module" : " esnext" ,
8+ "moduleResolution" : " node"
9+ }
10+ }
You can’t perform that action at this time.
0 commit comments