0.5.0 • Published 9 months ago

@dynein/hyperfor v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months 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.0

9 months ago

0.0.5

1 year ago

0.4.0

11 months ago

0.0.6

1 year ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago