I am using the Font Awesome in my reach app. I have added the required dependencies and imported them. The icons show up, unfortunately, when I click the icon directly, nothing happens. Does anyone know why this happens, and how to fix it?
clearHandler = (e) => { e.preventDefault(); } <FontAwesomeIcon icon={['far', 'times-circle']} aria-hidden="true" onClick={this.clearHandler} className={styles.clearButton} />
没有评论:
发表评论