Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion local-component/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
This example shows how to create a React component in a JS file along with a
Reflex wrapper in python that allows its use in a Reflex app.

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
component that displays a greeting with some additional functionality.
2 changes: 1 addition & 1 deletion local-component/local_component/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# Defining the asset with a module-relative path will result in copying the
# file into a subdir of the .web/public directory
component_asset = rx.asset(path="hello.js", shared=True)
component_asset = rx.asset(path="hello.jsx", shared=True)


class Hello(Div):
Expand Down
Loading