Answers for "react import url"

0

import link react

import { Link } from 'react-router-dom';
Posted by: Guest on June-16-2020
0

React import image with url

import React from "react";
 import ReactDOM from "react-dom";

 function App() {
   return (
     <img 
      src="https://images.pexels.com/photos/20787/pexels-photo.jpg?auto=compress&cs=tinysrgb&h=350"
      alt="new"
      />
   );
 }

 const rootElement = document.getElementById("root");
 ReactDOM.render(<App />, rootElement);
Posted by: Guest on November-01-2020
0

React import image with url

import React from 'react';
import ReactDOM from 'react-dom';

const App: FunctionComponent = () => {
  return (
    <img src = {this.props.url} alt='something'/> 
  );
}
Posted by: Guest on November-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language