|
7 月之前 | |
---|---|---|
.. | ||
App.tsx | 7 月之前 | |
README.md | 11 月之前 | |
index.html | 10 月之前 | |
main.tsx | 7 月之前 | |
package.json | 7 月之前 | |
tsconfig.json | 10 月之前 | |
vite.config.js | 2 年之前 |
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