0.5.1 • Published 1 year ago

@dynein/hyperfor v0.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@dynein/hyperfor

Adds high-performance loop/list rendering to Dynein.

Usage

function hyperfor<T>(arr: WatchedArray<T>, render: (item: T, index: ()=>number) => void): void

Example

import hyperfor from "@dynein/hyperfor"
import * as D from "dynein"
import { WatchedArray } from "@dynein/watched-builtins"


const arr = new WatchedArray([1,2,3])
D.createRoot(()=>{
	D.mountBody(()=>{
		hyperfor(arr, (item) => {
			D.addText(item)
		})
	})
})
0.5.1

1 year ago

0.5.0

2 years ago

0.0.5

2 years ago

0.4.0

2 years ago

0.0.6

2 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago