You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ReactDOM.render(<div><p>My name is {'John'}</p><p>My name is {1}</p><p>My name is {<i>a Node</i>}</p><p>My name is {<>a DocumentFragment</>}</p><p>My name is {NaN/* rendered because typeof NaN === 'number' */}</p><p>My name is {false}</p><p>My name is {true}</p><p>My name is {null}</p><p>My name is {undefined}</p></div>,document.body);
Test it on: https://jscomplete.com/playground
Currently
dom-chef
specifically tests to render falsey values as strings, but I think we should match React's behavior here.The text was updated successfully, but these errors were encountered: