Replies: 1 comment 1 reply
-
|
Here is an example of a github repo that uses typescript, but also includes a compiled Wrapped in reflex like so: class GithubComponent(rx.Component):
library = (
"@masenf/hello-react@github:masenf/hello-react"
)
tag = "Counter"
def add_imports(self):
return {"": ["@masenf/hello-react/dist/style.css"]}
def github_component_example():
return GithubComponent.create()The The main limitation with this approach is that build scripts are not run, so the repo itself needs to include the compiled artifacts. I've found this is pretty common in public js/ts packages, but maybe not for your internal components. Either way, reflex isn't really in the business of building your JS packages, it's up to you to use the tooling to produce an es6 module and package metadata reflecting that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Does reflex support typescript? we have custom react components that are built with typescript. If we are able to incorporate them, we can apply the look and feel of our organization.
Beta Was this translation helpful? Give feedback.
All reactions