Skip to content

Commit

Permalink
Remove differences between webpack and parcel samples
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Oct 8, 2018
1 parent 42d0b1d commit 165f041
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions sample/parcel/Sample.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component } from 'react';
import { Document, Page } from 'react-pdf/dist/entry.parcel';
import 'react-pdf/dist/Page/AnnotationLayer.css';

import './Sample.less';

Expand Down
5 changes: 1 addition & 4 deletions sample/webpack/Sample.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { Component } from 'react';
import { render } from 'react-dom';
import { Document, Page } from 'react-pdf/dist/entry.webpack';
import 'react-pdf/dist/Page/AnnotationLayer.css';

Expand All @@ -10,7 +9,7 @@ const options = {
cMapPacked: true,
};

class Sample extends Component {
export default class Sample extends Component {
state = {
file: './sample.pdf',
numPages: null,
Expand Down Expand Up @@ -67,5 +66,3 @@ class Sample extends Component {
);
}
}

render(<Sample />, document.getElementById('react-container'));
5 changes: 5 additions & 0 deletions sample/webpack/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import React from 'react';
import { render } from 'react-dom';
import Sample from './Sample';

render(<Sample />, document.getElementById('react-container'));

0 comments on commit 165f041

Please sign in to comment.