diff --git a/reflex/components/base/document.py b/reflex/components/base/document.py index e5500530a..727438186 100644 --- a/reflex/components/base/document.py +++ b/reflex/components/base/document.py @@ -8,7 +8,7 @@ from reflex.components.component import Component class NextDocumentLib(Component): """Root document components.""" - library = "next/document" + library: str = "next/document" class Html(NextDocumentLib): diff --git a/reflex/components/base/fragment.py b/reflex/components/base/fragment.py index 22e9d797a..60357cb55 100644 --- a/reflex/components/base/fragment.py +++ b/reflex/components/base/fragment.py @@ -5,5 +5,5 @@ from reflex.components.component import Component class Fragment(Component): """A React fragment to return multiple components from a function without wrapping it in a container.""" - library = "react" + library: str = "react" tag: str = "Fragment" diff --git a/reflex/components/base/head.py b/reflex/components/base/head.py index cd9a3d1b6..d63018946 100644 --- a/reflex/components/base/head.py +++ b/reflex/components/base/head.py @@ -6,7 +6,7 @@ from reflex.components.component import Component, MemoizationLeaf class NextHeadLib(Component): """Header components.""" - library = "next/head" + library: str = "next/head" class Head(NextHeadLib, MemoizationLeaf): diff --git a/reflex/components/base/script.py b/reflex/components/base/script.py index f3d2425bc..77354612e 100644 --- a/reflex/components/base/script.py +++ b/reflex/components/base/script.py @@ -19,7 +19,7 @@ class Script(Component): HTML