score:1

Accepted answer
import React from 'react';

const CustomButton = (props) => {
  if(!props.active) return <button className='custom-button-disabled'></button>;
  return <button className='custom-button'>{props.link}</button>;
};

export default CustomButton;

Related Query

More Query from same tag