We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f80063 commit 0949a35Copy full SHA for 0949a35
3 files changed
local-component/README.md
@@ -3,5 +3,5 @@
3
This example shows how to create a React component in a JS file along with a
4
Reflex wrapper in python that allows its use in a Reflex app.
5
6
-The custom component is `local_component/hello.js` and is a standard React
+The custom component is `local_component/hello.jsx` and is a standard React
7
component that displays a greeting with some additional functionality.
local-component/local_component/hello.js local-component/local_component/hello.jsxlocal-component/local_component/hello.js renamed to local-component/local_component/hello.jsx
local-component/local_component/hello.py
@@ -8,7 +8,7 @@
8
9
# Defining the asset with a module-relative path will result in copying the
10
# file into a subdir of the .web/public directory
11
-component_asset = rx.asset(path="hello.js", shared=True)
+component_asset = rx.asset(path="hello.jsx", shared=True)
12
13
14
class Hello(Div):
0 commit comments