Skip to content

Commit

Permalink
chore(docs): Grammar change to aid readability. Also added hyperlink …
Browse files Browse the repository at this point in the history
…to styled-component (#20494)
  • Loading branch information
Ekwuno authored and freiksenet committed Jan 9, 2020
1 parent 242ff89 commit 3ef9cc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/docs/what-you-dont-need-plugins-for.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ Some examples:
- Importing JavaScript packages that provide general functionality, such as `lodash` or `axios`
- Integrating visualization libraries, such as `Highcharts` or `d3`.

As a general rule, you may use _any_ npm package you might use without Gatsby, with Gatsby. What plugins offer is a prepackaged integration into the core Gatsby APIs to save you time and energy, with minimal configuration. In the case of `Styled Components`, you could manually render the `Provider` component near the root of your application, or you could just use `gatsby-plugin-styled-components` which takes care of this step for you in addition to any other difficulties you may run into configuring Styled Components to work with server side rendering.
As a general rule, any npm package you might use while working on another JavaScript or React application can also be used ,with a Gatsby application. What plugins offer is a prepackaged integration into the core Gatsby APIs to save you time and energy, with minimal configuration.

A good use case would be using `Styled Components`, you could manually render the `Provider` component near the root of your application, or you could use [gatsby-plugin-styled-components ](https://www.gatsbyjs.org/packages/gatsby-plugin-styled-components/) which takes care of this step for you in addition to any other difficulties when configuring Styled Components to work with server-side rendering.

0 comments on commit 3ef9cc9

Please sign in to comment.