Skip to content

MaanasArora/card-memory-react

Repository files navigation

card-memory-react

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save card-memory-react

Usage

Use the following props:

  • size in pixels
  • colors as an array of HTML color strings
  • number as a square number
import React, { Component } from 'react'

import MyComponent from 'card-memory-react'
import 'card-memory-react/dist/index.css'

class Example extends Component {
  render() {
    return <Game
    size={100}
    colors={['red', 'yellow', 'pink', 'blue']}
    number={49} />
  }
}

License

Apache License © MaanasArora

About

a card memory game element in reactjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published