is it necessary import react code example Example: importing react import React from 'react'; import ReactDOM from 'react-dom';