Fix fragment displaying raw chars
This commit is contained in:
@@ -22,7 +22,7 @@ proc createElement*(react: ReactGlobal, tag: cstring, props: Attrs,
|
|||||||
n1: auto): ReactNode
|
n1: auto): ReactNode
|
||||||
{.pop.}
|
{.pop.}
|
||||||
|
|
||||||
proc `<>`*(x: string): ReactNode {.importjs: "React.createElement(React.Fragment, null, #)".}
|
proc `<>`*(x: cstring): ReactNode {.importjs: "React.createElement(React.Fragment, null, #)".}
|
||||||
|
|
||||||
template makeDomElement(x: untyped, name: string = "") =
|
template makeDomElement(x: untyped, name: string = "") =
|
||||||
const tag {.gensym.} = if name == "": cstring(idString(x)) else: name
|
const tag {.gensym.} = if name == "": cstring(idString(x)) else: name
|
||||||
|
|||||||
Reference in New Issue
Block a user