Replies: 1 comment 3 replies
-
If you need to call methods in an API for a react component, the prototypical way would be to set the If you're wrapping a custom component, then a nice way to provide this is to offer methods on the Component class that return the Check out the example here: https://github.com/masenf/experiment-countdown-component/blob/f513f32c70f560c8648417593030787f014c25a6/experiment_countdown_component/countdown.py#L43-L57 If you need to get the result from calling an API function, then you can pass a state event handler as the If you have a reference/docs to the actual component you're wrapping I might be able to give better guidance. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I would like to know how can I wrap a custom module dedicated to authentication.
I have the documentation of this module for a typical usage in a React application but I'm not sure how to implement it in my Reflex app.
I have already read the Reflex documentation regarding how to wrap an external module an I'm able to install it but I don't know how to use it, like how to call methods from this module.
By the way, I'm using the twitter example as a template to implement it.
I think I could use the example in this discussion here to implement it but I'm not using a Python module.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions