Giter Club home page Giter Club logo

vanilla-js-spa's Introduction

Hi there

About me

  • I'm currently working as Front end software engineer @kakaopaysec
  • BlogLinkedin

vanilla-js-spa's People

Contributors

mugglim avatar

Watchers

 avatar

vanilla-js-spa's Issues

[FIX] setState가 정상적으로을 동작하지 않습니다.

문제점

  • 컴포넌트를 2개 이상 선언 시, 제일 마지막의 컴포넌트에서만 setState가 동작합니다.

예시 코드

import { Component } from '@/core/Component';
import Counter from '@/components/Counter';

export default class extends Component {
    constructor({ $parent }) {
        super({ $parent });
        this.setup({ element: `<div class="counter"></div>` });
    }

    didMount() {
        // FIXME : 동일한 컴포넌트에 대해 지역 상태 관리 로직이 구별하여 동작하지 않음.
        new Counter({ $parent: this.$target });
        new Counter({ $parent: this.$target });
    }

    template() {
        return `<h1>Counter App</h1>`;
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.