score:1

Accepted answer
import React from "react";
import ReactDOM from "react-dom";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faFacebook, faTwitter } from '@fortawesome/free-brands-svg-icons'

import "./styles.css";

function App() {
  return (
    <div className="App">
        <ul>
          <li>
            <a href="#" className="facebook"><FontAwesomeIcon icon={faFacebook}/></a>
          </li>
          <li>
            <a href="#" className="twitter"><FontAwesomeIcon icon={faTwitter}/></a>
          </li>
        </ul>
    </div>
  );
}

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

Related Query

More Query from same tag