Closed natalie-natsu closed 6 years ago
Unfortunately this doesn’t have to do with react-fontawesome since it is just a simple component.
It looks like you’re passing an object to icon
which is not how you use this component. Do you have a wrapper around react-fontawesome? If so, what does that look like? Can you send a minimal test example that reproduces this behavior?
Closing since this isn’t a react-fontawesome issue afaik.
I was wondering why you said that I was passing an object to icon. It's because I confounded your repo with the FontAwesome 5 repo for React. Conclusion: I'm a dumb person and sorry for the trouble. x)
Haha, that would do it 😜 glad you figured it out 👌
I'm trying to make a sign in button like in this code:
But when the props are updated and the button is rerendered with a different icon, the code differs from the page:
You see, the React Dev Tools is showing
faSignOutAlt
andfaSpinner
icon is displayed on the page.I'm using React.Portal feature to render this button. Don't know what to do.