Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  4] [ 4]  / answers: 1 / hits: 32890  / 5 Years ago, thu, november 28, 2019, 12:00:00

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?


More From » reactjs

 Answers
112

You can try out using this npm package react-icons



import { FaThumbsUp } from 'react-icons/fa';

<Button>
<FaThumbsUp />
</Button>

[#51427] Wednesday, November 20, 2019, 5 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ashelye

Total Points: 479
Total Questions: 97
Total Answers: 85

Location: Benin
Member since Fri, Mar 24, 2023
1 Year ago
;