Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react font awesome delete icon

npm i --save @fortawesome/fontawesome-svg-core
npm install --save @fortawesome/free-solid-svg-icons
npm install --save @fortawesome/react-fontawesome

import ReactDOM from 'react-dom'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faBackspace, faTrash } from '@fortawesome/free-solid-svg-icons'

const element = () => {
	return (
    <>
	    <FontAwesomeIcon icon={faBackspace} />
        {/*Or*/}
   	    <FontAwesomeIcon icon={faTrash} />
    </>
    )
}
 
PREVIOUS NEXT
Tagged: #react #font #awesome #delete #icon
ADD COMMENT
Topic
Name
1+2 =