1.0.3 • Published 8 months ago
react-flashcard v1.0.3
react-flashcard
Flashcard React Component
Install
npm install --save react-flashcard
Demo
You can view a demo for this package on both desktop and mobile environments.
Usage
import React, { Component } from 'react'
import { FlashcardComponent } from 'react-flashcard'
const cardData = [
{
front: {
text: "living outside, often in a tent",
image: "https://o.quizlet.com/RWRdgDus.uuqNDUrJ0ernA.jpg",
},
back: {
text: "Camping",
}
}
]
class Example extends Component {
render() {
return <FlashcardComponent dataSource={cardData} />
}
}
Properties
License
MIT © ozuit