/file-viewer-component

React component that takes a URL to a file and displays it if it can. Similar to the Gmail viewer

Primary LanguageJavaScriptMIT LicenseMIT

File view component

Live demo

Created component on top of react-boilerplate

  • components/FileViewer

Start demo

  1. Make sure that you have Node.js v8.10 and npm v5 or above installed.
  2. Clone this repo using git clone --depth=1 https://github.com/react-boilerplate/react-boilerplate.git <YOUR_PROJECT_NAME>
  3. Move to the appropriate directory: cd <YOUR_PROJECT_NAME>.
  4. Run npm run setup in order to install dependencies and clean the git repo.
    At this point you can run npm start to see the example app at http://localhost:3000.
  5. Run npm run clean to delete the example app.

Now you're ready to rumble!