Skip to content

Commit

Permalink
review comments docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pjain1 committed Dec 5, 2023
1 parent 6f48338 commit 0b0832b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/docs/integration/embedding.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,13 @@ Here's an example of how to create a dashboard component in a React application:

```jsx
import React, { useEffect, useState } from 'react';
import { useUser } from '../hooks/useUser';

const RillDashboard = () => {
const [iframeUrl, setIframeUrl] = useState('');

const { userEmail } = useUser();

useEffect(() => {
const { userEmail } = useUser();
const getIframeUrl = async () => {
const response = await fetch(
`https://admin.rilldata.com/v1/organizations/<org-name>/projects/<project-name>/iframe`,
Expand Down

0 comments on commit 0b0832b

Please sign in to comment.