Releases: wisercoder/uibuilder
Support nested fragments
Nested fragments are now supported. Also, in order to support expressions such as { someBool && <MyComponent /> }
boolean false values are now not displayed.
In other news, the time for WebComponents has now come. FireFox now supports Shadow DOM. Microsoft's Edge is switching to Chromium, which brings WebComponents to Edge. UIBuilder helps you create WebComponents, as well as use them in your applications.
Support for fragments and functional components
Fragments avoid the need for an extra wrapper element when you need to return more than one element in your render method. Functional components let you implement stateless components as functions as opposed to classes. This release has a breaking change. The return type of the render method is now JSX.Element not HTMLElement.
ref callbacks on components now receive instance of component
This release has two breaking changes:
- If you have ref callback on a component the callback will now receive the instance of the component as the first parameter. This is an important improvement. Previously the callback received the root HTML element of the component, and there was no way to get a reference to the component.
- The Props interface now takes type parameter, which should be the type of the Component.
bug fixes
v1.4.5 bug fix and increment version
fixed svg bug
bug fixes
v1.4.3 bump version number
Improved support for Web Components
v1.4 update readme
SVG support; bug fixes
v1.3 update readme
support props.children, ref callback, style object
v1.2 support props.children, ref callback, style object
support events
v1.1 bump version number