SYNTAX TEMPLATE
code example:
import React, { useState } from 'react';
function Example() {
// Declare a new state variable, which we'll call "count"
const [count, setCount] = useState(0);
return (
<div>
<p>You clicked {count} times
<button onClick={() => setCount(count + 1)}>
Click me
Title
A { test: 0 }
, and we increment when the user clicks a button by calling this.setState()
. We’ll use snippets from this class throughout the page.
Note
TEST TEST TEST TEST TEST