Giter Site home page Giter Site logo

js-framework-howto's Introduction

DanielJS - A basic study on how to start your own JavaScript framework

If you are curious how a JavaScript framework like Vue.js works behind the scenes, here is my personal approach to built my own framework.

This propably won't be continued. I just wanted this to be like a proof of concept.

This just has two functions implemented.

  1. Replace the {{placeholders}} with an actual string which is provided in the initial Object
  2. Create a simple for-loop that loops through an Array and replaces the basic element in the template
  3. Show how it works to overload the setter of a given variable to trigger rerender on change
  4. Implement an async API-Call to JSON-Placeholder to thow that it actually works!

I've tried to comment my code as much as possible.

Dislaimer

I isn't hard to find bugs if you try hard enough. As I already told you: This is just some kind of POC.

js-framework-howto's People

Contributors

blurrryy avatar

Watchers

 avatar

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.