I can add a button with text in react-bootstrap using code like
<Button
className={styles.feedbackButtonRating}
variant={this.state.liked ? 'success' : 'light'}
onClick={this.handleOnLikeClick}
>
{FEEDBACK_LIKE_BUTTON_TEXT}
</Button>
Is there a way to replace {FEEDBACK_LIKE_BUTTON_TEXT}
text with a thumb up icon?
You can try out using this npm package react-icons
import { FaThumbsUp } from 'react-icons/fa';
<Button>
<FaThumbsUp />
</Button>
You can use font awesome library (npm-pakage) for reactjs.
Link : Font-awesome for reactjs
USE -
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
<FontAwesomeIcon icon="signal" />
<FontAwesomeIcon icon="globe" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With