Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon committed Nov 30, 2023
1 parent d1abccf commit 8fa390b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/framework-integrations/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The following components are exported from `@uppy/react`:
- `<ProgressBar />` renders [`@uppy/progress-bar`](/docs/progress-bar)
- `<StatusBar />` renders [`@uppy/status-bar`](/docs/status-bar)

{/* Commented out until the hook is live
{/\* Commented out until the hook is live

### Hooks

Expand Down Expand Up @@ -89,7 +89,7 @@ You can see all the values you can access on the
type. If you are accessing plugin state, you would have to look at the types of
the plugin.

*/}
\*/}

## Examples

Expand Down Expand Up @@ -154,7 +154,7 @@ export default function App() {
const [uppy] = useState(() => new Uppy());
return (
// Add your router here
// Add your router here
<>
<Page1 />
<Page2 uppy={uppy} />
Expand Down Expand Up @@ -188,7 +188,7 @@ function Component(props) {
When you go to production always make sure to set the `signature`. **Not using
[Signature Authentication](https://transloadit.com/docs/topics/signature-authentication/)
can be a security risk**. Signature Authentication is a security measure that
can prevent outsiders from tampering with your Assembly Instructions.
can prevent outsiders from tampering with your Assembly Instructions.

Generating a signature should be done on the server to avoid leaking secrets. In
React, this could get awkward with a `fetch` in a `useEffect` and setting it to
Expand All @@ -211,7 +211,7 @@ function createUppy(userId) {
}
function Component({ userId }) {
// IMPORTANT: passing an initializer function to prevent Uppy from being reinstantiated on every render.
// IMPORTANT: passing an initializer function to prevent Uppy from being reinstantiated on every render.
const [uppy] = useState(() => createUppy(userId));
useEffect(() => {
Expand Down

0 comments on commit 8fa390b

Please sign in to comment.