how to display html string in iframe in react js code example Example: iframe in react npm install react-iframe # yarn yarn add react-iframe