UNPKG
react-addtocart
Version:
latest (1.0.0)
1.0.0
A simple add to cart button
react-addtocart
/
addtocart.js
12 lines
(9 loc)
•
183 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
React
from
'react'
;
const
AddToCart
= (
) => {
return
(
<
div
>
<
button
>
Add To Cart
</
button
>
</
div
>
) }
export
default
AddToCart
;