0.1.53 • Published 2 years ago

@tienlucky/storage v0.1.53

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

PPE React Storage

React Library Component for upload/view files. Easy to use. Upload to server support.

Live demo

Insert gif or link to demo

Setup

Install React Storage with npm

npm install @tienlucky/storage

Get API key at https://link-to-project

Add API key at .env file.

REACT_APP_CODEBY_STORAGE_URL=https://package-storage.codeby.com/file-s3
REACT_APP_CODEBY_STORAGE_TOKEN=xxx

Usage/Examples

import {Image} from '@tienlucky/storage'
import {useEffect, useState} from "react";
import "@tienlucky/storage/src/tienlucky-storage.min.css";

const App = () => {
    const [value, setValue] = useState()

    useEffect(() => {
        console.log('useEffect value', value)
    }, [value])

    return (
        <>
            <Image.SingleUpload
                value={value}
                onChange={setValue}
            />
            <hr/>
            <Image.View image={value}/>
        </>
    )
}

export default App

Support

For support, email tiennv.ppe@gmail.com or join our Slack channel.

License

MIT

0.1.52

2 years ago

0.1.53

2 years ago

0.1.50

2 years ago

0.1.51

2 years ago

0.1.49

2 years ago

0.1.41

2 years ago

0.1.42

2 years ago

0.1.43

2 years ago

0.1.45

2 years ago

0.1.46

2 years ago

0.1.47

2 years ago

0.1.48

2 years ago

0.1.40

2 years ago

0.1.38

2 years ago

0.1.37

2 years ago

0.1.36

2 years ago

0.1.34

2 years ago

0.1.33

2 years ago

0.1.32

2 years ago

0.1.31

2 years ago

0.1.30

2 years ago

0.1.29

2 years ago

0.1.28

2 years ago

0.1.27

2 years ago

0.1.26

2 years ago

0.1.25

2 years ago

0.1.24

2 years ago

0.1.23

2 years ago

0.1.22

2 years ago

0.1.21

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago