plataforma-fundacao-componentes 2.20.22 → 2.20.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +20 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,26 +1,38 @@
1
1
  # plataforma-fundacao-componentes
2
2
 
3
- > Made with create-react-library
3
+ > feito com create-react-library
4
4
 
5
5
  [![NPM](https://img.shields.io/npm/v/plataforma-fundacao-componentes.svg)](https://www.npmjs.com/package/plataforma-fundacao-componentes) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
6
 
7
- ## Install
7
+ ## Instalar
8
8
 
9
9
  ```bash
10
10
  npm install --save plataforma-fundacao-componentes
11
11
  ```
12
12
 
13
- ## Usage
13
+ ## Usar
14
14
 
15
- ```tsx
16
- import React, { Component } from 'react'
15
+ Dois passos para utilizar os componentes
16
+
17
+ ## 1) Importar o CSS no HOC da sua ferramenta
17
18
 
18
- import MyComponent from 'plataforma-fundacao-componentes'
19
+ ```tsx
19
20
  import 'plataforma-fundacao-componentes/dist/index.css'
21
+ ```
22
+
23
+ `*HOC: High Order Component: importamos no App.tsx ou App.jsx, mas também pode ser importado no index.tsx ou index.jsx`
24
+
25
+ ## 2) Importar o componente e utilizar :P
26
+
27
+ ```tsx
28
+ import React, { Component } from 'react'
29
+ import { Button } from 'plataforma-fundacao-componentes'
20
30
 
21
- class Example extends Component {
31
+ expord default function Example() {
22
32
  render() {
23
- return <MyComponent />
33
+ return <Button onClick={() => {
34
+ console.log('clicou')
35
+ }}>Clique</Button>
24
36
  }
25
37
  }
26
38
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plataforma-fundacao-componentes",
3
- "version": "2.20.22",
3
+ "version": "2.20.23",
4
4
  "description": "Made with create-react-library",
5
5
  "author": "Guvidaletti",
6
6
  "license": "MIT",