Skip to content

Commit

Permalink
fix: Replace missing file with basic React template
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Nov 17, 2023
1 parent 744cc40 commit 40c05f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ipyreact/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ class ReactWidget(anywidget.AnyWidget):
"scopes": {
},
}
_esm = HERE / Path("basic.tsx")
_esm = """
import * as React from "react";
export default function App() {
<p>Welcome to ipyreact!</p>
}
"""

def __init__(self, **kwargs) -> None:
_import_map = kwargs.pop("_import_map", {})
Expand Down

0 comments on commit 40c05f4

Please sign in to comment.