All notable changes to this project will be documented in this file.
-
Event handler names. Potentially breaking change:
DOM element event handler names must now be like React wants them, i.e. camel-cased:
:onClick
. Other forms like:onclick
won't work anymore. React prints a warning when it doesn't match.Similarly, in custom elements (i.e.
main.wc/use
and viadom/h
), the event handler names must now match the event name, except for the third letter, which must be uppercase and is transformed to lowercase. So in order to handlemyEvent
you must use:onMyEvent
. An assertion is raised if the third letter is not uppercase.
-
Removed
reacl-c.core/handle-effect-result
in favour ofreacl-c.core/execute-effect
. To migrate just flip the arguments around. -
The
dom-testing
namespace has moved to its own library reacl-c-testing. -
The Reacl interop (
reacl-c.main.reacl
andreacl-c.interop.reacl
) have to its own library reacl-c-reacl
- The representation/translation to React classes has been overhauled
greatly. The majority of classes used now are generated for each
defn-item
(anddefn-dom
). This makes the React component hierarchy more useful when debugging or analyzing the performance of an application. It may also increase the general performance because less React classes are generated and in a more predictible way.