From 40c05f4db6770bc80026a2b9382167d699417ca1 Mon Sep 17 00:00:00 2001 From: Trevor Manz Date: Fri, 17 Nov 2023 09:37:07 -0500 Subject: [PATCH] fix: Replace missing file with basic React template --- ipyreact/widget.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ipyreact/widget.py b/ipyreact/widget.py index 7c5b4f5..145c761 100644 --- a/ipyreact/widget.py +++ b/ipyreact/widget.py @@ -44,7 +44,13 @@ class ReactWidget(anywidget.AnyWidget): "scopes": { }, } - _esm = HERE / Path("basic.tsx") + _esm = """ + import * as React from "react"; + + export default function App() { +

Welcome to ipyreact!

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