oh-wheel
v1.1.0
Published
Preact-like JavaScript library for building modern user interfaces.
Downloads
1
Readme
oh-wheel
Preact-like JavaScript library for building modern user interfaces.
Unit Tests
compose
- composes from right to left
- composes functions from right to left
- throws at runtime if argument is not a function
- can be seeded with multiple arguments
- returns the first given argument if given no functions
- returns the first function if given only one
h
- should return a VNode
- should preserve raw attributes
- should support element children
- should support multiple element children, given as arg list
- should handle multiple element children, given as an array
- should handle multiple children, flattening one layer as needed
- should support nested children
- should support text children
- should support number children
- should merge adjacent text children
- should merge nested adjacent text children
- should not merge children that are boolean values
- should not merge children of components