Demo: https://mhasbini.com/miscs/react-chrome-dino-demo/index.html
Install:
yarn add react-chrome-dino
import React from 'react';
import ChromeDinoGame from 'react-chrome-dino';
const App = () => (
<ChromeDinoGame />
);
export default App;
Check src/demo
for a usage example.
This library is licensed under MIT.
The game javascript & css is licensed under BSD as follow:
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file here: https://cs.chromium.org/chromium/src/LICENSE.
In the project directory, you can run:
Runs the library in development mode. Open http://localhost:3000 to view it in the browser.
Runs the test watcher in an interactive mode.
Builds the library for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
Publishes the library to NPM.