📜  React Liked 组件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:21.390000             🧑  作者: Mango

代码示例1
import React from "react";

const Like = (props) => {
  let classes = "fa fa-heart";
  if (!this.props.liked) classes += "-o";
  return (
    
  );
};

export default Like;