Using SimpleBar with IDOM #536
Answered
by
rmorshea
Archmonger
asked this question in
Question
-
I am trying to import simplebar, but it appears to prevent the component from registering properly. simplebar_react = idom.web.module_from_template(
"react", "simplebar-react", resolve_exports=True
)
simplebar = idom.web.export(simplebar_react, "SimpleBar") Any advice? |
Beta Was this translation helpful? Give feedback.
Answered by
rmorshea
Nov 19, 2021
Replies: 1 comment 8 replies
-
So imports of the form |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
Archmonger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So imports of the form
import thing from "thing";
are using the default export of a module. This requires the, as yet unreleased,exports_default
parameter formodule_from_template
.