Made with create-react-library
npm install --save card-memory-react
Use the following props:
size
in pixelscolors
as an array of HTML color stringsnumber
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} />
}
}
Apache License © MaanasArora