njsx icon indicating copy to clipboard operation
njsx copied to clipboard

Bug: Basic Objects are treated as children when they contain the key "type"

Open 3dGrabber opened this issue 2 years ago • 0 comments

^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}).

3dGrabber avatar May 30 '22 09:05 3dGrabber