custom-react-newsletter
v1.0.2
Published
This is a newsletter component developed agnostically
Downloads
10
Readme
📢 Use este projeto, contribua com ele ou abra problemas para ajudar a evoluí-lo.
Newsletter
O aplicativo submete dados para sua base de dados, permitindo que os usuários da loja se cadastrem para receber futuras promoções/ofertas.
Configurações
Etapa 1 - Adicione custom-react-newsletter às dependências do seu projeto
npm install custom-react-newsletter
or
yarn add custom-react-newsletter
Etapa 2 - Importando o aplicativo e utilizando-o em seu projeto
import React from 'react'
import Newsletter from 'custom-react-newsletter/dist'
const Example = () => {
return (
<Newsletter BASE_URL={} title={} error={} sucess={} />
)
}
export default Example
Dicas
custom-react-newsletter
props
| Nome | Tipo | Descrição | Valor inicial |
| :------------: | :-----------: | :----------------------------: | :-----------: |
| BASE_URL
| [string]
| Permite especificr a url base do banco de dados. | /api/dataentities/NL/documents
|
| title
| [string]
| Permite definir um título e/ou frase para o bloco. | Newsletter
|
| error
| [string]
| Exibe uma mensagem informando o usuário que houve um erro em seu cadastro. | Failed to send data! :(
|
| sucess
| [string]
| Exibe uma mensagem informando o usuário que seu cadastro foin realizado com sucesso. | Successful sending data
|
Contribuições ✨
This project follows the all-contributors specification. Contributions of any kind are welcome!