Fable
Fable copied to clipboard
Unexpected behavior of the map function, when inserting nodes into the DOM tree
Description
Unexpected behavior of the map function, when inserting nodes into the DOM tree
In fact these nodes are not inserted into the DOM tree by the map function
Repro code
Expected and actual results
Open devtool, you can see that the node with id=crx-root2 has no child nodes, which means that the map function is not working properly
But the result we expect should be that there are two buttons in this node
In other words, I think the following two pieces of code should be equivalent.
root.appendChild button1
root.appendChild button2
and
[button1;button2;]
|> Seq.map root.appendChild
Related information
- Fable version:
dotnet fable --version
- Operating system