Import event constructor in custom components (#249)

This commit is contained in:
Nikhil Rao 2023-01-11 17:46:57 -08:00 committed by GitHub
parent 7f0aa4f5c4
commit 98e9edd98a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,10 @@ def _compile_components(components: Set[CustomComponent]) -> str:
Returns:
The compiled components.
"""
imports = {"react": {"memo"}}
imports = {
"react": {"memo"},
f"/{constants.STATE_PATH}": {"E"},
}
component_defs = []
# Compile each component.