GithubHelp home page GithubHelp logo

loreanvictor / callbag-router Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 370 KB

Routing for single-page applications, using Callbags

License: MIT License

JavaScript 2.66% TypeScript 97.34%
callbag frontend routing spa

callbag-router's Introduction

Hits



I am Eugene Ghanizadeh Khoub, I study informatics at TUM, have helped out @CafeBazaar, @CONNECT-platform, and @coding.blog and worked on CODEDOC. Currently I work with @ECOMPLY on data protection, help @Divar with product management, and try to see what comes out of @Vitrine.

๐Ÿ‘‰ Here are the other (coding) stuff that (currently) interest me (and so I am working on):

โšก Reactive Programming

  • quel: imperative reactive programming
  • streamlets: a protocol for handling data/event streams (its like callbags but marginally faster and pausable by default).
  • callbag-common: a hand-picked and patched collection of callbag utilities
  • callbag-state and callbag-state-keyed: as-easy-as-it-gets and versatile state management using callbags

๐ŸŽจ Making Web Applications

  • minicomp: minimalistic web components with SSR support
  • rehtm: lightweight HTML templates with SSR support
  • graphis: a convenient and stylish icon-font based on emojis
  • nokss: a drop-in stylesheet
  • packen: bundles isomorphic JS
  • callbag-jsx: JSX + callbags, tiny performant explicitly reactive frontend library

๐Ÿš€ Making APIs

๐Ÿง Other


activity

callbag-router's People

Contributors

loreanvictor avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

callbag-router's Issues

Add a rendering plugin for router links

Right now, navigation is only possible with onclick handlers. If we want anchor elements to have the links and route based on it means we need redundant specification:

<a onclick={() => navigate('/hellow')} href='/hellow' />

This is also particularly inconvenient for specifying query parameters / route parameters. Perhaps a rendering plugin that will handle handle these automatically:

import { RouterLinkPlugin, link } from 'callbag-router'

renderer = makeRenderer().plug(() => new RouterLinkPlugin())

renderer.render(
  <>
    <a router-link='/hellow'/>
    <a router-link={link('/hellow/:name', { query: { x: '42' }, route: { name: 'world' } })}/>
  </>
).on(document.body)

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.