Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Merge pull request #140 from luchiago/traducao-what-you-dont-need-plu…
Browse files Browse the repository at this point in the history
…gins-for.md

translate: what-you-dont-need-plugins-for.md
  • Loading branch information
jessescn authored Jan 9, 2020
2 parents 0039b4e + 16ec4fc commit ea8b611
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/docs/what-you-dont-need-plugins-for.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: What You Don't Need Plugins For
title: Para o que você não precisa de plugins
---

Most third-party functionality you want to add to your website will follow standard JavaScript and React.js patterns for importing packages and composing UIs. These do not require a Gatsby plugin!
A maioria das funcionalidades de terceiros que você quer adicionar ao seu website seguirá os padrões de JavaScript e React.js para a importação de pacotes e composição de UIs. Estes não precisam de um plugin Gatsby!

Some examples:
Alguns exemplos:

- Importing JavaScript packages that provide general functionality, such as `lodash` or `axios`
- Using React components or component libraries you want to include in your UI, such as `Ant Design`, `Material UI`, or the typeahead from your component library.
- Integrating visualization libraries, such as `Highcharts` or `d3`.
- Importar pacotes JavaScript que provém funcionalidades gerais, como a `lodash` ou `axios`.
- Utilizar componentes React ou componentes de bibliotecas que você quer incluir na sua UI como `Ant Design`, `Material UI`, ou o tipo da sua biblioteca de componentes.
- Integrar bibliotecas de visualização, como a `Highcharts` ou `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.
Como regra geral, você pode usar _qualquer_ pacote npm independente do Gatsby com o Gatsby. O que os plugins oferecem é uma integração pré-embalada no núcleo das APIs do Gatsby para poupar tempo e energia, com configurações básicas. No caso de `Componentes Estilizados`, você poderia renderizar manualmente o componente `Provider` próximo a raiz da sua aplicação, ou você pode apenas usar o `gatsby-plugin-styled-components` que cuida desse passo para você, além de quaisquer outras dificuldades que você possa encontrar na configuração de Componentes Estilizados para trabalhar com renderização do lado do servidor.

0 comments on commit ea8b611

Please sign in to comment.