File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11# Changelog
2+ ## [ 0.3.1] - Feb 20, 2019
3+ ### Fixed
4+ - ` <-ref ` : Pass initial value to ` react/useRef `
25
36## [ 0.3.0] - Feb 10, 2019
47### Changed
Original file line number Diff line number Diff line change 1- (defproject lilactown /hx " 0.3.0 "
1+ (defproject lilactown /hx " 0.3.1 "
22 :description " An easy to use, decomplected hiccup compiler for ClojureScript & React."
33 :url " https://github.com/Lokeh/hx"
44 :license {:name " Eclipse Public License"
Original file line number Diff line number Diff line change 3232 " Takes an initial value. Returns an atom that will _NOT_ re-render component
3333 on change."
3434 [initial]
35- (let [react-ref (react/useRef )
35+ (let [react-ref (react/useRef initial )
3636 update-ref (fn [v] (gobj/set react-ref " current" v))]
3737 (Atomified. [react-ref update-ref] #(.-current ^js %))))
3838
You can’t perform that action at this time.
0 commit comments