react-animated-heart
v0.0.8
Published
Simple Twitter-like animated heart
Downloads
1,516
Maintainers
Readme
react-animated-heart
A simple Twitter-like animated button. desperately needed it for one of my projects.
Installation
npm install react-animated-heart
yarn add react-animated-heart
Usage
import React, { useState } from "react";
import Heart from "react-animated-heart";
export default function App() {
const [isClick, setClick] = useState(false);
return (
<div className="App">
<Heart isClick={isClick} onClick={() => setClick(!isClick)} />
</div>
);
}
License
MIT