domql
domql copied to clipboard
`DOM.create` doesn't do exec() on first argument
// This doesn't work. If comparison was just an object, it would work.
const comparison = ({ state }) => ({
props: {},
h1: {
tag: "h1",
text: "DOMQL -> Mitosis",
style: { textAlign: "center" },
},
dropdown,
container: {
domqlCodeBlock,
mitosisCodeBlock,
style: {
width: "100%",
display: "flex",
height: "100%",
flexDirection: "row",
justifyContent: "space-between",
}
},
style: {
height: "100%",
fontFamily: "monospace",
}
})
app = DOM.create(comparison, document.body, "app")