image-dropzone 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1 +1,52 @@
1
- # image-dropzone-typescript-package
1
+ # image-dropzone-typescript-package
2
+
3
+ [![NPM version][npm-image]][npm-url]
4
+ [![Build][github-build]][github-build-url]
5
+ ![npm-typescript]
6
+ [![License][github-license]][github-license-url]
7
+
8
+
9
+ It is simple React counter.
10
+
11
+ ## Installation:
12
+
13
+ ```bash
14
+ npm install image-dropzone --save-dev
15
+ ```
16
+
17
+ or
18
+
19
+ ```bash
20
+ yarn add -D image-dropzone
21
+ ```
22
+
23
+ ## Usage :
24
+
25
+ Add `MyCounter` to your component:
26
+
27
+ ```js
28
+ import React from 'react'
29
+ import ReactDOM from 'react-dom/client'
30
+ import { MyCounter } from 'my-react-typescript-package'
31
+
32
+ const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
33
+ root.render(
34
+ <React.StrictMode>
35
+ <div>
36
+ <h2>Default counter</h2>
37
+ <MyCounter />
38
+ </div>
39
+ <hr />
40
+ <div>
41
+ <h2>Counter with predefined value</h2>
42
+ <MyCounter value={5} />
43
+ </div>
44
+ </React.StrictMode>,
45
+ )
46
+
47
+ ```
48
+
49
+ [npm-url]: https://www.npmjs.com/package/image-dropzone
50
+ [github-license-url]: https://github.com/NavjotKaur01/image-dropzone/blob/main/LICENSE
51
+ [github-build]: https://github.com/NavjotKaur01/image-dropzone/actions/workflows/publish.yml/badge.svg
52
+ [github-build-url]: https://github.com/NavjotKaur01/image-dropzone/actions/workflows/publish.yml