Skip to content

Instantly share code, notes, and snippets.

View manueltuero's full-sized avatar

Manuel Tuero manueltuero

  • Wolox S.A.
  • Argentina
View GitHub Profile
@manueltuero
manueltuero / SubscribeForm.js
Created November 4, 2019 19:33
A simple Form built with Gatsby and React Hooks to subscribe with Mailchimp
import React, { useState } from 'react';
import addToMailchimp from 'gatsby-plugin-mailchimp';
import styles from './styles.scss';
function SubscribeForm() {
const [email, setEmail] = useState('');
const [status, setStatus] = useState('');
const [message, setMessage] = useState('');
const handleSubmit = async event => {
import React, { useState } from 'react';
import addToMailchimp from 'gatsby-plugin-mailchimp';
import './styles.css';
function SubscribeForm() {
const [email, setEmail] = useState('');
const [status, setStatus] = useState('');
const [message, setMessage] = useState('');
const handleSubmit = async event => {
@manueltuero
manueltuero / .gitlab-ci.yml
Created September 23, 2019 15:41
Gitlab CI/CD build and deploy template
# Global Docker image for the runner
image: node:10
stages:
- build
- deploy
cache:
paths:
- node_modules/