Skip to content

hyperhooks/hyperhooks-core

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.5%
  • Swift 5.3%
  • HTML 4.2%