I have a problem with showing a toggle off icon in my React app:
The icon is not appearing on the screen.
How can I fix that?
Here is my code snippet shown below.
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
<FontAwesomeIcon icon="fa-solid fa-toggle-off" onClick={switchTheme}/>