Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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;
Comment

PREVIOUS NEXT
Code Example
Javascript :: play a sound in js 
Javascript :: obfuscate js code 
Javascript :: react hotjar 
Javascript :: remove unused css and js wordpress 
Javascript :: add pdf in react app 
Javascript :: js shallow copy 
Javascript :: js ternaire 
Javascript :: vue slice words 
Javascript :: Vue Js pass parameters in computed properties 
Javascript :: search an array with regex javascript find 
Javascript :: adding hbs partials in express.js 
Javascript :: how to check if date is between two dates in javascript 
Javascript :: asynchronous in javascript 
Javascript :: ajax post csrf codeigniter 
Javascript :: react native elements bottom sheet 
Javascript :: got bearer auth 
Javascript :: sequelize findall return 
Javascript :: creating room in ws nodejs 
Javascript :: react native communicate with webview 
Javascript :: vue mixin example 
Javascript :: javascript set() handler 
Javascript :: slice() in js 
Javascript :: rating calculator formula javascript 
Javascript :: regex match between quotes without escape 
Javascript :: react-multi-carousel infinite loop causing issue 
Javascript :: javascript array de imagenes 
Javascript :: react features 
Javascript :: jquery on method 
Javascript :: get search value from reacr route1 
Javascript :: leaflet 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =