This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-23
Channels
- # beginners (8)
- # boot (87)
- # cider (16)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (27)
- # clojure-austin (2)
- # clojure-beijing (1)
- # clojure-belgium (1)
- # clojure-russia (66)
- # clojure-uk (17)
- # clojurescript (48)
- # core-typed (1)
- # cursive (3)
- # datomic (8)
- # emacs (7)
- # funcool (3)
- # hoplon (22)
- # instaparse (1)
- # jobs-discuss (4)
- # leiningen (2)
- # om (17)
- # onyx (16)
- # reactive (2)
- # reagent (7)
- # rum (2)
- # specter (1)
- # untangled (3)
is there a preferred pattern for snapshotting an ratom, to e.g. compare in-memory state with state fetched from a server?
in clojure i'd be looking at refs at this point, but i'm really lost how i should approach this in clojurescript
Comparing state? Perhaps https://clojuredocs.org/clojure.data/diff
I'm trying to figure out out reactify-component
and create-class
and related functions can be used to great components that can be used from React. Like
import myReagent from 'my-reagent'
class Example extends React.Component {
render() {
return (
<myReagent
x = "property1"
/>
);
}
}
Ok, looks like reagent 0.6.0-alpha has this but I just have to figure out how to expose myself there
The output of create-class can now be used directly in JSX.
”Native React components” can now be used directly in Reagent’s hiccup forms, using this syntax: [:> nativeComp {:key "value"}]. This might sometimes be more convenient than using adapt-react-class.
Reagent should now also be a bit easier to use in node.js. If global React is not defined (i.e React, ReactDOM and ReactDOMServer), Reagent tries to use require instead, to get react, react-dom and react-dom/server from npm.
http://reagent-project.github.io/news/news060-alpha.html