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
The render method accepts jsx, and something like text nodes, but plain text should be supported too. Otherwise it's neccesary to wrap text (or numbers) inside tags, like:
import{render}from'react-dom';render("Hi",document.querySelector('#app'));```javascriptWorks with numbers too:`render(55,document.querySelector('#app'));`
The text was updated successfully, but these errors were encountered:
The render method accepts jsx, and something like text nodes, but plain text should be supported too. Otherwise it's neccesary to wrap text (or numbers) inside tags, like:
render(<>Hi</>, target);
And that's cumbersome.
See this working with React here:
https://playcode.io/react/
Paste these lines:
The text was updated successfully, but these errors were encountered: