Skip to content

Commit

Permalink
docs(example): log lib version in example
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdyman committed Feb 8, 2024
1 parent 636c0b1 commit 0353d78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/example/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { StrictMode } from 'react';
import packageJson from 'react-compare-slider/package.json';
import { createRoot } from 'react-dom/client';

import App from './App';

import './index.css';

console.info('react-compare-slider version:', packageJson.version);

createRoot(document.getElementById('root') as HTMLElement).render(
<StrictMode>
<App />
Expand Down

0 comments on commit 0353d78

Please sign in to comment.