0.1.14 • Published 2 years ago
react-storage-codeby v0.1.14
React Storage Codeby
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 Codeby with npm
npm install react-storage-codeby --legacy-peer-deps
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 {RecordUpload} from 'react-storage-codeby'
import {useEffect, useState} from "react";
const RecordUploadPage = () => {
const [value, setValue] = useState()
useEffect(() => {
console.log('useEffect value', value)
}, [value])
return (
<>
<RecordUpload
value={value}
onChange={setValue}
/>
</>
)
}
export default RecordUploadPage
Support
For support, email tiennv.ppe@gmail.com
or join our Slack channel.