njsx
njsx copied to clipboard
Bug: Basic Objects are treated as children when they contain the key "type"
^Title
This makes it impossible to create an input
element:
const usernameInput = input({type: "text" , id: "Username"})
const passwordInput = input({type: "password", id: "Password"})
The above will produce the following error:
Uncaught Error: Objects are not valid as a React child (found: object with keys {type, id}).