File size: 493 Bytes
2083506
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from 'react';

// receive setActiveTab to change page
function Home({ setActiveTab }) {
  return (
    <main id="page-a" className="page">

      <h1>FocusGuard</h1>

      <p>Your productivity monitor assistant.</p>



      {/* click button change to 'focus' page */}

      <button

        id="start-button"

        className="btn-main"

        onClick={() => setActiveTab('focus')}

      >

        Start

      </button>

    </main>
  );
}

export default Home;