Skip to content

Commit

Permalink
0.12.4
Browse files Browse the repository at this point in the history
  • Loading branch information
roman01la committed Mar 14, 2021
1 parent d4cd413 commit 599ef79
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject rum "0.12.3"
(defproject rum "0.12.4"
:description "ClojureScript wrapper for React"
:license {:name "Eclipse"
:url "https://www.eclipse.org/legal/epl-v10.html"}
Expand Down

0 comments on commit 599ef79

Please sign in to comment.