GithubHelp home page GithubHelp logo

timdaub / 1way Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 23 KB

A 1way flux-esk state library. Like react-hooks but without the react.

Home Page: https://timdaub.github.io/1way/

JavaScript 56.03% HTML 43.97%

1way's Introduction

1way

A 1way flux-esk state library. Like react-hooks but without the react.

Installation

$ npm install --save 1way

Documentation

1way is a really simple library at this point. It was inspired by the way angular and react are binding JavaScript variables within HTML.

Why?

Back in the days, angular got really popular for a feature called "two-way-binding" (I believe Backbone introduced it first). It allowed a web developer to bind a dom element directly to a variable defined in JavaScript.

Immediately, everybody got exited and used two-way-binding extensively. Until they noticed that in large applications it's not that great.

Along came react and innovated on the binding part by introducing the Flux architecture, which among other things, suggested a one way data flow.

Now, it seems two way data flows are getting back in fashion.

<script>
  let name = 'world';
</script>

<h1>Hello {name}!</h1>
<input type="text" bind:value={name} />

(Run this code here.)

But additionally, we're now inventing languages, not frameworks. It's great for moving standards forward. But since no winner seems to have emerged yet, it may be more effective simply sticking to HTML5. Which is, after all, pretty neat too now!

Using 1way in your app

Check out index.html for an example of how to use 1way.

Demo

Checkout a demo here.

Changelog

0.0.2

  • Implement integrate functionality

0.0.1

  • Initial release

Resources:

1way's People

Contributors

timdaub avatar

Watchers

 avatar  avatar

1way's Issues

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.