@tienlucky/storage
v0.1.53
Published
React Library Component for upload/view files. Easy to use. Upload to server support.
Readme
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/storageGet 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=xxxUsage/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 AppSupport
For support, email [email protected] or join our Slack channel.
