Skip to content

Instantly share code, notes, and snippets.

@Mohammad-Faisal
Last active January 12, 2022 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mohammad-Faisal/db00e7f2d1a71f44a345222560247df1 to your computer and use it in GitHub Desktop.
Save Mohammad-Faisal/db00e7f2d1a71f44a345222560247df1 to your computer and use it in GitHub Desktop.
import {fetchData} from './AwsFunctions';
export default const App = () => {
const fetchDataFormDynamoDb = () => {
fetchData('users')
}
return <>
<button onClick={() => fetchDataFormDynamoDb()}> Fetch </button>
</>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment