Skip to content

Commit

Permalink
docs: Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danez authored Nov 30, 2019
1 parent e2ae43f commit cddd24c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ component. With it you can build your wrapper for highlighting code.
```js
import React, { Component } from 'react';
import BareHighlight from 'react-fast-highlight/lib/BareHighlight';
import BareHighlight from 'react-fast-highlight/lib/js/BareHighlight';
import hljs from './customhljs';

class CustomHighlight extends Component {
Expand Down Expand Up @@ -119,7 +119,7 @@ To make web-workers working with webpack you additionally need to install
```js
import React from 'react';
import { Highlight } from 'react-fast-highlight';
import Worker from 'worker!react-fast-highlight/lib/worker';
import Worker from 'worker!react-fast-highlight/lib/js/worker';

class App extends React.Component {

Expand Down

0 comments on commit cddd24c

Please sign in to comment.