Skip to content
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

Merged
merged 2 commits into from
Nov 8, 2019
Merged

Docs for better Next.js integration #300

merged 2 commits into from
Nov 8, 2019

Conversation

robmadole
Copy link
Member

No description provided.

README.md Outdated
export default MyApp
```

You may also wish to include you library calls in the `_app.js` code.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your

Copy link
Member Author

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)
Copy link

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?

Copy link
Member Author

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.

Copy link

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?

@robmadole
Copy link
Member Author

Alright, thanks for the 👀 . Going to merge and we'll follow-up with more changes if needed.

@robmadole robmadole merged commit 0a17caa into master Nov 8, 2019
@robmadole robmadole deleted the nextjs-docs branch November 8, 2019 21:07
@@ -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)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants