Skip to content

Instantly share code, notes, and snippets.

View LuisHCK's full-sized avatar
🏠
Working from home

Luis J. Centeno LuisHCK

🏠
Working from home
View GitHub Profile

Componente1.vue (Padre)

<template>


</template>

<script>
export default {
@LuisHCK
LuisHCK / react.md
Last active February 3, 2021 03:10
react.md

Parent.js

import React from 'react'

export default function Parent() {
    const [myState, setMyState] = useState()

    return (
        <div>
 
@LuisHCK
LuisHCK / setup_server.sh
Created April 27, 2021 00:03
Setup ubuntu server + nodejs + nginx + pm2 + certbot
# Install nodejs
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
node --version
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn
yarn --version