Code Monkey home page Code Monkey logo

create-frontend-framework's Introduction

What's this

This is a small project to practice about how to implement reactivity in a self-built front-end framework. It utilizes existing Virtual DOM library snabbdom to patch DOM effectively, and @herp-inc/snabbdom-jsx to support using JSX to create VNodes.

I made the framework more Vue 2 alike. Users use defineComponent to create a new component, with options to inject data that is watched for reactivity. Currently supports primitive data values.


Original document from the front-end framwork mini book

Slides available here

This project aims to provide a step by step implementation of a "frontend framework". It's only for learning purpose and allows to take a first shot of internal stuff such as templating, state management, and the use of Virtual DOMs.

NEW: here's another way to implement it using React API and JSX

NEW: the project is now available on github pages! https://mfrachet.github.io/create-frontend-framework/

create-frontend-framework's People

Contributors

roackb2 avatar akaguny avatar andresruizdc avatar aurora-0025 avatar jean-smaug avatar

Stargazers

Raven 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.