forked from JoshuaBrigati/Portfolio-2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCodeDisplay.js
41 lines (40 loc) · 1.18 KB
/
CodeDisplay.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const CodeDisplay = () => {
return (
<section className='code-section'>
<pre>
1 const <b>Person</b> = () => {
</pre>
<pre>
2 const [name, setName] = useState('');
</pre>
<pre>
3 const [role, setRole] = useState('');
</pre>
<pre>
4 const [interests, setInterests] = useState('');
</pre>
<pre>
6
</pre>
<pre>
5 useEffect(() => {
</pre>
<pre>
6 setName("<b>Joshua Brigati</b>");
</pre>
<pre>
7 setRole("<b>Front-End Software Engineer</b>");
</pre>
<pre>
8 setInterest("<b>Web3, Defi, Crypto, F1</b>");
</pre>
<pre>
9 }, []);
</pre>
<pre>
10 }
</pre>
</section>
)
}
export default CodeDisplay;