react-trinkets
v0.0.9
Published
A collection of react trinkets
Downloads
3
Maintainers
Readme
React Trinkets
A collection of React.js components to decorate your site with.
Installation
With Yarn:
yarn add react-trinkets
With npm:
npm install --save-dev react-trinkets
Usage
Each trinket has their own default properties. You can overwrite the defaults by passing props into the component.
Last Visited
This component welcomes users to your website and remembers their last visit. It displays a personalized message depending on how recently they visited. For example, it might say "Welcome back!" if they visited yesterday or "Hey there! It's been a while" if it's been a longer time.
Example
import { LastVisited } from "react-trinkets";
function App() {
return (
<div>
<ReactTrinkets>
<div>
);
}
export default App;