- Bug fixes.
defc-
for "private" components (Isaac Zarsky). Likedefn-
, these are not enforced in ClojureScript, but provide hints about intent.
- Also don't convert aria attributes to camel-case since.
after-update
added as a function (alternative to getting through the argument map).method
returns the bound method of the given name. Useful for non-React event handlers since you must provide an identical function when removing.
- Bump React version.
- Add
cljsjs/create-react-class
to silence deprecation warning of React.createClass. - Don't convert data attributes to camel-case since those need to remain kebab-case.
- Bump React to version 15.
- Added the React version to the "build metadata" of this library's version number.
- Hot reloading now replaces methods in a React component's prototype instead of saving and
restoring. This is safer and doesn't cause
component-did-mount
to fire. - Components now implement the
IFn
protocol, allowing method calls, e.g.,(react/call instance :do-stuff)
, to be shortened to, e.g.,(instance :do-stuff)
. - State and props are duplicated as plain JavaScript objects to make them easy to view in React's developer tools for Chrome.
- Including
:trace? true
when creating a class will cause the component to log every method call. create-element
will now accept a plain JavaScript React element.- Safer internal variable handling to make sure things don't break with advanced optimizations.