dependabot[bot] a39193ee14 build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 7 місяців тому
..
App.tsx bc27b4a5c8 Pass container to `UIPlugin.render` for non-Preact integration (#5437) 7 місяців тому
README.md 7d6937300a meta: enable prettier for markdown (#5133) 11 місяців тому
index.html c148139295 examples: make React example up-to-date (#5205) 10 місяців тому
main.tsx bc27b4a5c8 Pass container to `UIPlugin.render` for non-Preact integration (#5437) 7 місяців тому
package.json a39193ee14 build(deps-dev): bump vite from 5.3.1 to 5.3.6 (#5459) 7 місяців тому
tsconfig.json c148139295 examples: make React example up-to-date (#5205) 10 місяців тому
vite.config.js 7d74d3a451 example: upgrade React example to use React 18 (#4002) 2 роки тому

README.md

React example

This is minimal example created to demonstrate how to integrate Uppy in your React app.

To spawn the demo, use the following commands:

corepack yarn install
corepack yarn build
corepack yarn workspace @uppy-example/react dev

If you'd like to use a different package manager than Yarn (e.g. npm) to work with this example, you can extract it from the workspace like this:

corepack yarn workspace @uppy-example/react pack

# The above command should have create a .tgz file, we're going to extract it to
# a new directory outside of the Uppy workspace.
mkdir ../react-example
tar -xzf examples/react-example/package.tgz -C ../react-example --strip-components 1
rm -f examples/react-example/package.tgz

# Now you can leave the Uppy workspace and use the example as a standalone JS project:
cd ../react-example
npm i
npm run dev