Skip to content
View andriannus's full-sized avatar
:electron:
Rasengan
:electron:
Rasengan
Block or Report

Block or report andriannus

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
andriannus/README.md

Hi 👋🏾, I'm Andre Simamora

andriannus

About Me

import { useCallback, useEffect, useState } from 'react';

interface CurrentWorkplace {
  company: string;
  position: string;
}

interface AboutMeState {
  currentWorkplace: Partial<CurrentWorkplace>;
  dailyKnowledge: string[];
  fullName: string;
}

interface AboutMeHook {
  aboutMe: AboutMeState;
}

export default function useAboutMe(): AboutMeHook {
  const [aboutMe, setAboutMe] = useState<AboutMeState>({
    currentWorkplace: {},
    dailyKnowledge: [],
    fullName: ''
  });

  const setFullName = useCallback(() => {
    setAboutMe({
      ...aboutMe,
      fullName: 'Andriannus Parasian'
    });
  }, [aboutMe]);

  const setCurrentWorkplace = useCallback(() => {
    setAboutMe({
      ...aboutMe,
      currentWorkplace: {
        company: 'eFishery',
        position: 'Frontend Engineer'
      }
    });
  }, [aboutMe]);

  const setDailyKnowledge = useCallback(() => {
    setAboutMe({
      ...aboutMe,
      dailyKnowledge: [
        'JavaScript',
        'TypeScript',
        'React.js',
        'Vue',
        'Angular',
        'AJAX',
        'CSS Preprocessor',
        'Unit Test',
        'E2E Test',
        'Git',
        'JIRA/ClickUp'
      ]
    });
  }, [aboutMe]);

  useEffect(() => {
    setFullName();
    setDailyKnowledge();
    setCurrentWorkplace();
  }, [setFullName, setDailyKnowledge, setCurrentWorkplace]);

  return { aboutMe };
}

Connect with me

andriannus andriannus andriannus andriannus andriannus.p

Pinned

  1. searchmap searchmap Public

    Find places and Draw on Map using Google Maps API

    PHP 54 55

  2. covid covid Public

    COVID19 Monitoring with Vue.js and TypeScript

    TypeScript

  3. phone-book phone-book Public

    Phone Book with Vue 3 and TypeScript

    TypeScript 2 1

  4. kepobro-react kepobro-react Public

    Personal news portal. Powered by News API

    JavaScript

  5. sehatyuk-spa sehatyuk-spa Public

    Temukan instansi kesehatan di daerah DKI Jakarta (SPA)

    PHP 7 12

  6. library-vue-ts library-vue-ts Public

    Simple Library App with Express and Vue - TypeScript

    Vue 1