Skip to content

Instantly share code, notes, and snippets.

View aldo-jr's full-sized avatar

Aldo Donisete Fernandes Júnior aldo-jr

  • iFood
  • Brazil
View GitHub Profile
@aldo-jr
aldo-jr / create-react-app.sh
Created January 26, 2018 19:32
React (create-react-app) Starter Pack with bootstrap (jquery & popper.js), axios, router, redux (react-redux, redux-thunk) and redux-form
#!/usr/bin/env bash
sudo npm install -g create-react-app
create-react-app my-app
cd my-app
npm i -s axios bootstrap jquery popper.js react-redux react-router-dom redux redux-form redux-thunk
npm run eject
@aldo-jr
aldo-jr / Upload.js
Created December 8, 2017 15:42
multiple-forms-upload-file-fetchapi-react
import React, {Component} from 'react';
export default class Upload extends Component {
constructor(props) {
super(props);
this.state = {fileOne: null,fileTwo: null};
this.uploadOne = this.uploadOne.bind(this);
this.uploadTwo = this.uploadTwo.bind(this);
this.submitFormOne = this.submitFormOne.bind(this);