Created
April 5, 2024 19:47
-
-
Save PaulieScanlon/e841adfbc40a48a03b13a30573c40d3b to your computer and use it in GitHub Desktop.
Example Waku Child Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/components/child-component.tsx | |
const ChildComponent = async () => { | |
const response = await fetch('https://api.github.com/repos/dai-shi/waku'); | |
const data = await response.json(); | |
return <pre>{JSON.stringify(data, null, 2)}</pre>; | |
}; | |
export default ChildComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment