1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-11 16:44:57 +02:00

Add rating

This commit is contained in:
Phuoc Nguyen
2019-11-26 08:52:54 +07:00
parent 46d6b4dd57
commit a936883c39
9 changed files with 171 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
import React from 'react';
import './star.css';
interface StarProps {
isActive: boolean;
}
const Star: React.FC<StarProps> = ({ isActive }) => {
return (
<button className="star">
{isActive ? '★' : '☆'}
</button>
);
};
export default Star;