This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-27
Channels
- # admin-announcements (1)
- # announcements (11)
- # babashka (17)
- # beginners (26)
- # calva (6)
- # cider (2)
- # circleci (1)
- # clojure (41)
- # clojure-dev (1)
- # clojure-europe (31)
- # clojure-france (2)
- # clojure-italy (10)
- # clojure-nl (7)
- # clojure-norway (5)
- # clojure-spec (15)
- # clojure-uk (42)
- # clojurescript (4)
- # code-reviews (12)
- # conjure (10)
- # datalog (2)
- # datascript (15)
- # datomic (37)
- # emacs (1)
- # events (5)
- # fulcro (19)
- # jobs (1)
- # jobs-discuss (9)
- # kaocha (2)
- # luminus (14)
- # meander (4)
- # membrane (39)
- # off-topic (26)
- # other-languages (2)
- # re-frame (13)
- # reitit (6)
- # rewrite-clj (39)
- # sci (6)
- # shadow-cljs (33)
- # test-check (15)
- # vrac (17)
- # xtdb (7)
Dear all, any suggestions on how to translate this react-reveal code to cljs? Thanks. https://www.react-reveal.com/tutorials/carousel/
const Container = styled.div`
border: 1px solid red;
position: relative;
overflow: hidden;
width: 300px;
height: 150px;
`;
const CarouselUI = ({ children }) => <Container>{children}</Container>;
const Carousel = makeCarousel(CarouselUI);
render (
<Carousel defaultWait={1000} /*wait for 1000 milliseconds*/ >
<Slide right>
<div>
<h1>Slide 1</h1>
<p>Slide Description</p>
</div>
</Slide>
<Slide right>
<div>
<h1>Slide 2</h1>
<p>Slide Description</p>
</div>
</Slide>
</Carousel>
);
got the solution, that react component shoudl reactify-component
for makeCarousel.
(ns vision.views.test
(:require [reagent.core :as r]
["react-reveal" :as reveal]
["react-reveal/makeCarousel" :as make-carousel]))
(defn CarouselUI [children]
[:div children])
(def Carousel (make-carousel (r/reactify-component CarouselUI)))
@kimin Could you share the full solution? I am interested in how you solved it, but cannot get it to work.
Has anyone had success server-side rendering a re-frame app with a aws lambda function? Don't see why it wouldn't work in principle compiled to node.js and wrapped with the lambda handler, but wondering if it's a smooth ride?