Last active
March 5, 2020 21:06
-
-
Save danielschmitz/3298931710299d775f3be9c849832898 to your computer and use it in GitHub Desktop.
React Template
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
import React, {useEffect, useState} from 'react'; | |
export default function App() { | |
/** | |
* States | |
*/ | |
const [_foo, setFoo] = useState([]); | |
/** | |
* Effects | |
*/ | |
useEffect( () => { | |
setFoo("Foo") | |
}, []) | |
/** | |
* Handlers | |
*/ | |
/** | |
* Internal Components | |
*/ | |
const cHelloWorld = <h1>Hello World, {_foo}</h1> | |
/** | |
* Main Component | |
*/ | |
return ( | |
<> | |
{cHelloWorld} | |
</> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment