Answers for "react linking to documents"

0

react linking to documents

import React, { Component } from 'react';
import Pdf from '../Documents/Document.pdf';

class Download extends Component {

  render() {

    return (
      <div className = "App">
        <a href = {Pdf} target = "_blank">Download Pdf</a>
      </div>
    );
  }
}

export default Download;
Posted by: Guest on February-21-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language