React import image with url code example
Example 1: React import image with url
import React from "react";
import ReactDOM from "react-dom";
function App() {
return (
);
}
const rootElement = document.getElementById("root");
ReactDOM.render( , rootElement);
Example 2: React import image with url
import React from 'react';
import ReactDOM from 'react-dom';
const App: FunctionComponent = () => {
return (
);
}