Skip to content

Commit

Permalink
docs: missing react import
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Feb 6, 2024
1 parent e7069e9 commit af986ed
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ import traitlets

class Slider(ipyreact.ValueWidget):
_esm = """
import * as React from "react";
import {Slider} from "antd-minimal"
export default ({value, setValue, ...rest}) => {
Expand Down
22 changes: 19 additions & 3 deletions examples/antd/antd.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,33 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"id": "559b5234",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0ad91d04e5eb4d4098c90100609c0467",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Slider(value=2)"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import traitlets\n",
"\n",
"\n",
"class Slider(ipyreact.ValueWidget):\n",
" _esm = \"\"\"\n",
" \n",
" import * as React from \"react\";\n",
" import {Slider} from \"antd-minimal\"\n",
" \n",
" export default ({value, setValue, ...rest}) => {\n",
Expand Down

0 comments on commit af986ed

Please sign in to comment.