Skip to content

Commit

Permalink
fix: update documentation for ref (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
roerohan authored Jul 30, 2022
1 parent aa25dcb commit 3bbe643
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 97 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ npm run build:lib
A `VncScreen` component is exposed from the library, to which you can pass the required and optional props. For example,

```ts
import React from 'react';
import React, { useRef } from 'react';
import { VncScreen } from 'react-vnc';

function App() {
const ref = useRef();

return (
<VncScreen
url='ws://your-vnc-url.com'
Expand Down Expand Up @@ -214,4 +216,4 @@ Distributed under the MIT License. See [`LICENSE`](./LICENSE) for more informati
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[roerohan-url]: https://roerohan.github.io
[issues-shield]: https://img.shields.io/github/issues/roerohan/react-vnc.svg?style=flat-square
[issues-url]: https://github.com/roerohan/react-vnc/issues
[issues-url]: https://github.com/roerohan/react-vnc/issues
140 changes: 46 additions & 94 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"husky": "^7.0.0",
"is-ci": "^2.0.0",
"rollup": "^2.44.0",
"rollup-plugin-typescript2": "^0.30.0",
"rollup-plugin-typescript2": "^0.32.1",
"semantic-release": "^18.0.0",
"typescript": "^4.5.5"
},
Expand Down

0 comments on commit 3bbe643

Please sign in to comment.