Re: [ClojureScript] [ANN] Clojure 1.7.0-RC1 now available
Alex, I'm behind the curve but here's another experience report: We've been testing with RC1 for the last few weeks in a development branch, and found nothing out of the ordinary. This is a relatively substantial web app using libs such as compojure, clojure.java.jdbc, Prismatic's schema, and a bunch of other fairly common libraries. The only thing that I've really noticed, in fact, is that it's lovely to get rid of CLJX and have reader conditionals baked-in! Thanks-- DD On 2015/05/22 1:30, Alex Miller wrote: Clojure 1.7.0-RC1 is now available. Try it via - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.7.0-RC1/ - Leiningen: [org.clojure/clojure 1.7.0-RC1] The only change since 1.7.0-beta3 is CLJ-1706, which makes reader conditional splicing an error at the top level (previously it would silently drop all but the first spliced element). For a full list of changes since 1.6.0, see: https://github.com/clojure/clojure/blob/master/changes.md Please give it a try and let us know if things are working (or not). The more and quicker feedback we get, the sooner we can release 1.7.0 final! - Alex -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com mailto:clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com mailto:clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.
[ClojureScript] Passing reagent components to react components that expect jsx (in this case, fixed-data-table)
Hi, can anyone point me in the right direction as to how to convert reagent components into a form that a react component will accept in place of a function that returns jsx? The specific example I'm trying to get working is the fixed-data-table plugin with markup in the cells. Here's a snippet from one of the fixed-data-table examples (https://github.com/facebook/fixed-data-table/blob/master/site/examples/ObjectDataExample.js) that does just that in plain react: function renderLink(/*string*/ cellData) { return a href=#{cellData}/a; } function renderDate(/*object*/ cellData) { return span{cellData.toLocaleString()}/span; } Column cellRenderer={renderLink} label=Email width={200} dataKey=email / Column cellRenderer={renderDate} label=DOB width={200} dataKey=date / But my attempts to pass in reagent components result in either nothing or (str component). Have tried reagent/reactify-component, reagent/as-element and reagent/as-component and various permutations thereof. So my clojurescript looks something like this: (defn hello-cat [args] (pr args) [:span hello cat]) ... (Column {:label Foo :dataKey :foo :cellDataGetter getter :cellRenderer (reagent/reactify-component hello-cat) ;; renders nothing ;; :cellRenderer (reagent/as-component hello-cat) ;; renders (str component) ;; :cellRenderer (reagent/as-element hello-cat) ;; renders (str component) ;; :cellRenderer (reagent/render-to-string hello-cat) ;; renders generated html as string :width 50} Any ideas? Thanks, Russell -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.
Re: [ClojureScript] [ANN] Clojure 1.7.0-RC1 now available
Thanks David! Hopefully we'll have an RC2 out soon. On Friday, June 12, 2015 at 5:19:28 AM UTC-5, David Della Costa wrote: Alex, I'm behind the curve but here's another experience report: We've been testing with RC1 for the last few weeks in a development branch, and found nothing out of the ordinary. This is a relatively substantial web app using libs such as compojure, clojure.java.jdbc, Prismatic's schema, and a bunch of other fairly common libraries. The only thing that I've really noticed, in fact, is that it's lovely to get rid of CLJX and have reader conditionals baked-in! Thanks-- DD -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.
[ClojureScript] Re: Passing reagent components to react components that expect jsx (in this case, fixed-data-table)
For anyone else who might run into a similar issue, @Frozenlock helped me out on the clojurescript IRC. There seems to be some sort of problem with react-with-addons - when I removed that, i got it to work with the following code: https://www.refheap.com/102477. Same code, but with react-with-addons, doesn't work. On Friday, June 12, 2015 at 2:57:01 PM UTC+1, Russell Dunphy wrote: Hi, can anyone point me in the right direction as to how to convert reagent components into a form that a react component will accept in place of a function that returns jsx? The specific example I'm trying to get working is the fixed-data-table plugin with markup in the cells. Here's a snippet from one of the fixed-data-table examples (https://github.com/facebook/fixed-data-table/blob/master/site/examples/ObjectDataExample.js) that does just that in plain react: function renderLink(/*string*/ cellData) { return a href=#{cellData}/a; } function renderDate(/*object*/ cellData) { return span{cellData.toLocaleString()}/span; } Column cellRenderer={renderLink} label=Email width={200} dataKey=email / Column cellRenderer={renderDate} label=DOB width={200} dataKey=date / But my attempts to pass in reagent components result in either nothing or (str component). Have tried reagent/reactify-component, reagent/as-element and reagent/as-component and various permutations thereof. So my clojurescript looks something like this: (defn hello-cat [args] (pr args) [:span hello cat]) ... (Column {:label Foo :dataKey :foo :cellDataGetter getter :cellRenderer (reagent/reactify-component hello-cat) ;; renders nothing ;; :cellRenderer (reagent/as-component hello-cat) ;; renders (str component) ;; :cellRenderer (reagent/as-element hello-cat) ;; renders (str component) ;; :cellRenderer (reagent/render-to-string hello-cat) ;; renders generated html as string :width 50} Any ideas? Thanks, Russell -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.