when do you need to import react code example Example: importing react import React from 'react'; import ReactDOM from 'react-dom';