Originally reported on Feliz repo here
It is common to have condition in the properties list to conditionally apply some classes for example:
let Ele() =
JSX.create "div" [
if 1 = 1 then
"className", "first"
]
currently it fails with error FABLE: Expecting a static list or array literal (no generator) for JSX props
This is because in this case a CEs list is generated by the compiler.
We need to look into unwrapping that CEs like we did for the children list and try to manipulate the AST to generate what we want.