Giter Site home page Giter Site logo

hyperhooks-core's Introduction

Hyperhooks is a minimalistic stand-alone implementation of React Hooks and the Virtual DOM concept exposed by the React API.

Core

The hyperhooks-core component provides the foundational h (for hyperscript) function which is equivalent to React's createElement.

Additionally several hook functions are exposed: useCallback, useEffect, useReducer, useRef, useStateโ€ฆ

DOM Renderer

hyperhooks-core is used by the DOM Renderer to target the Web.

Swift renderer

Hyperhooks can also target native iOS (and other Apple Platforms) via the Swift Renderer.

Usage

To use hyperhooks-core just import lib/hyperhooks-core.js into your module. You will need a renderer to generate views for a specific platform.

Alternatively you can add it to your page via <script> tag.

<script src="https://github.com/hyperhooks/hyperhooks-core/releases/download/1.0.0/hyperhooks-core.js"></script>

Build

hyperhooks-core is written in Pure JavaScript with no transpiling needed.

Test

Tests are located in the test folder. To run them, open test/index.html with your browser of choice and open the development console to see the results.

hyperhooks-core's People

Contributors

diegolavalledev avatar

Watchers

 avatar

Forkers

hyperhooks

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.