{"size": 744, "ext": "js", "max_stars_repo_path": "src/App.js", "max_stars_repo_name": "poeks/snake", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/App.js", "max_issues_repo_name": "poeks/snake", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/App.js", "max_forks_repo_name": "poeks/snake", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.6551724138, "max_line_length": 90, "alphanum_fraction": 0.6088709677}
import React, { useState } from 'react';
import logo from './Free vector anaconda snake.svg';
import './App.css';
import SnakeGame from './lib/index.js';


function App() {
  const [highScore, setHighScore] = useState(0);

  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="Cartoon snake" />
        <p>
          Snake game!
        </p>
        </header>
      <div className='snake-game-container'>
        <SnakeGame highScore={highScore} setHighScore={setHighScore}/>
      </div>
      <footer className="App-footer">
        <a href="https://www.vecteezy.com/free-vector/snake">Snake Vectors by Vecteezy</a>
      </footer>
    </div>
  );
}

export default App;
