-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs for better Next.js integration #300
Conversation
README.md
Outdated
export default MyApp | ||
``` | ||
|
||
You may also wish to include you library calls in the `_app.js` code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. Thanks
import { faBars, faUser } from '@fortawesome/free-solid-svg-icons' | ||
import { faTwitter, faFacebook } from '@fortawesome/free-brands-svg-icons' | ||
|
||
library.add(faBars, faUser, faTwitter, faFacebook) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or just import them where they are used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a section below this to mention explicit import.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean; I tried both in a nextjs project and there seems to be no upside to doing library.add
at all?
Alright, thanks for the 👀 . Going to merge and we'll follow-up with more changes if needed. |
@@ -26,6 +26,8 @@ | |||
* [Basic](#basic) | |||
* [Advanced](#advanced) | |||
* [TypeScript](#typescript) | |||
- [Integrating with other tools and frameworks](#integrating-with-other-tools-and-frameworks) | |||
* [ext.js](#extjs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh. Thanks.
No description provided.