Skip to content

Instantly share code, notes, and snippets.

View blindibrasil's full-sized avatar
🎯
Focusing

Blindi Brasil blindibrasil

🎯
Focusing
View GitHub Profile
@blindibrasil
blindibrasil / Suggestion.js
Created October 16, 2019 18:49
Slate - Metions - Error
import React, { useRef, useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { css } from 'emotion';
const SuggestionList = React.forwardRef((props, ref) => (
<ul
{...props}
ref={ref}
className={css`
background: #fff;
@blindibrasil
blindibrasil / index.js
Created November 1, 2019 17:20
Upload - RocketSeat - Hook
import React, { useState, useEffect, useCallback } from 'react';
import { uniqueId } from 'lodash';
import Dropzone from 'react-dropzone';
import filesize from 'filesize';
import { CircularProgressbar } from 'react-circular-progressbar';
import { MdCheckCircle, MdError, MdLink } from 'react-icons/md';
import api from '~/services/api';
import {
Container,