Fix custom component render (#517)
This commit is contained in:
parent
5e0d5b9e2e
commit
29d46facb1
@ -557,6 +557,14 @@ class CustomComponent(Component):
|
|||||||
custom_components |= self.get_component().get_custom_components(seen=seen)
|
custom_components |= self.get_component().get_custom_components(seen=seen)
|
||||||
return custom_components
|
return custom_components
|
||||||
|
|
||||||
|
def _render(self) -> Tag:
|
||||||
|
"""Define how to render the component in React.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
The tag to render.
|
||||||
|
"""
|
||||||
|
return Tag(name=self.tag).add_props(**self.props)
|
||||||
|
|
||||||
def get_prop_vars(self) -> List[BaseVar]:
|
def get_prop_vars(self) -> List[BaseVar]:
|
||||||
"""Get the prop vars.
|
"""Get the prop vars.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user