Skip to content

Instantly share code, notes, and snippets.

@jnfrati
jnfrati / SketchSystems.spec
Created August 30, 2021 19:32
Welcome screen
Welcome screen
Project_Name *
next -> Select_Provider
Select_Provider
next -> Provider_Form
Provider_Form
@jnfrati
jnfrati / RandomComponent.js
Created August 21, 2020 14:35
Forward Ref and useImperativeHandle propTypes
import React from 'react';
import {node} from 'prop-types';
const RandomComponent = React.forwardRef((props, ref) => {
React.useImperativeHandle(ref, () => ({
someFunction: () => {
return 'someData';
},
someOtherFunction: () => {
@jnfrati
jnfrati / instalar-docker.md
Created August 6, 2020 16:22
Instalacion de docker en linux mint 19

Primero desinstalamos cualquier registro de docker que puede haber venido en nuestro sistema

sudo apt remove docker docker-engine docker.io containerd runc

Luego actualizamos todos los paquetes del sistema

sudo apt update
@jnfrati
jnfrati / pruebaFrank.js
Last active May 20, 2020 00:57
asdasdasd
(async function(){
async function a(){
try{
// procesamiento vario
const res = await fetch();
return res.json();
}catch(error){
//catch error form fetch and from any process above
throw error
}