mirror of
https://github.com/tonsky/rum.git
synced 2025-08-03 18:13:19 +08:00
0.12.4
This commit is contained in:
14
CHANGELOG.md
14
CHANGELOG.md
@ -1,3 +1,17 @@
|
||||
## 0.12.4
|
||||
|
||||
### New
|
||||
|
||||
- `:did-remount` is now `:will-remount`, the name matches semantics closely
|
||||
- Added support for soft-deprecated lifecycle methods prefixed with `UNSAFE`: `:unsafe/will-mount` and `:unsafe/will-update`
|
||||
- Added a wrapper for React's `useLayoutEffect` hook: `use-layout-effect!`
|
||||
- Added Reagent-like `:>` syntax for interop with React components
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fixed `fragment` macro not supporting optional attributes
|
||||
- Fixed crashing in projects using Rum w/o ClojureScript dependency
|
||||
|
||||
## 0.12.3
|
||||
|
||||
### Fixes
|
||||
|
@ -81,7 +81,7 @@ Rum:
|
||||
|
||||
## Using Rum
|
||||
|
||||
Add to project.clj: `[rum "0.12.3"]`
|
||||
Add to project.clj: `[rum "0.12.4"]`
|
||||
|
||||
### API Docs & Articles
|
||||
|
||||
@ -642,7 +642,7 @@ There are Rum wrappers for the various React hooks. See doc strings for examples
|
||||
|
||||
When used from cljs Rum delegates serizliation to ReactDOM library. If used from clj/cljc, Rum works as a traditional template engine à la Hiccup:
|
||||
|
||||
1. Rum’s `project.clj` dependency becomes `[rum "0.12.3" :exclusions [cljsjs/react cljsjs/react-dom]`
|
||||
1. Rum’s `project.clj` dependency becomes `[rum "0.12.4" :exclusions [cljsjs/react cljsjs/react-dom]`
|
||||
2. Import `rum.core` as usual.
|
||||
3. Define components using `rum/defc` or other macros as usual.
|
||||
4. Instead of mounting, call `rum/render-html` to render into a string.
|
||||
|
@ -1,4 +1,4 @@
|
||||
(defproject rum "0.12.3"
|
||||
(defproject rum "0.12.4"
|
||||
:description "ClojureScript wrapper for React"
|
||||
:license {:name "Eclipse"
|
||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||
|
Reference in New Issue
Block a user