This commit is contained in:
roman01la
2021-03-14 13:44:07 +02:00
parent d4cd413fe5
commit 599ef79c62
3 changed files with 17 additions and 3 deletions

View File

@ -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

View File

@ -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. Rums `project.clj` dependency becomes `[rum "0.12.3" :exclusions [cljsjs/react cljsjs/react-dom]`
1. Rums `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.

View File

@ -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"}