0.1.53 • Published 3 years ago

@tienlucky/storage v0.1.53

Weekly downloads
-
License
MIT
Repository
-
Last release
3 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

3 years ago

0.1.53

3 years ago

0.1.50

3 years ago

0.1.51

3 years ago

0.1.49

3 years ago

0.1.41

3 years ago

0.1.42

3 years ago

0.1.43

3 years ago

0.1.45

3 years ago

0.1.46

3 years ago

0.1.47

3 years ago

0.1.48

3 years ago

0.1.40

3 years ago

0.1.38

3 years ago

0.1.37

3 years ago

0.1.36

3 years ago

0.1.34

3 years ago

0.1.33

3 years ago

0.1.32

3 years ago

0.1.31

3 years ago

0.1.30

3 years ago

0.1.29

3 years ago

0.1.28

3 years ago

0.1.27

3 years ago

0.1.26

3 years ago

0.1.25

3 years ago

0.1.24

3 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago