15.
What is the correct way to render JSX in React?
ReactDOM.render(JSX, document.getElementById(root))
<React.render(JSX, document.rootNode) />
ReactDOM.render(JSX, document.getElementById('app'))
<ReactDom(JSX, document.getElementById('root')) />
Correct: C
The correct way to render JSX in React is to use the ReactDOM.render() method and pass in the JSX element as the first argument and the target element's ID as the second argument. In this example, the JSX is rendered inside the element with the ID 'app'.