This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-25
Channels
- # aleph (2)
- # aws (2)
- # beginners (37)
- # boot (23)
- # cider (29)
- # clara (34)
- # cljs-dev (2)
- # cljsrn (17)
- # clojure (230)
- # clojure-dev (47)
- # clojure-italy (11)
- # clojure-nl (2)
- # clojure-poland (5)
- # clojure-russia (52)
- # clojure-sg (1)
- # clojure-spec (70)
- # clojure-uk (73)
- # clojurescript (31)
- # core-async (9)
- # cursive (15)
- # datomic (39)
- # events (1)
- # graphql (1)
- # lein-figwheel (2)
- # luminus (13)
- # off-topic (2)
- # onyx (29)
- # other-lisps (1)
- # parinfer (15)
- # pedestal (14)
- # re-frame (41)
- # reagent (24)
- # ring (4)
- # ring-swagger (12)
- # rum (1)
- # spacemacs (3)
- # specter (1)
- # test-check (13)
- # timbre (9)
- # unrepl (29)
- # vim (5)
I was setting up a project to use react-native with re-natal/reagent. After having some issues with the RN setup and upgrading to RN 0.46, I seem to have issues with reagent, which doesn't seem to be compatible with react >15.5.0... Am I right? (`React.createClass` doesn't exist anymore in 16.0)
problem solved... new version of reagent...
has anyone here tried the antizer react wrapper with reagent? https://github.com/priornix/antizer i'm trying to create a dropdown but i get the following error:
(defn menu []
[ant/menu
[ant/menu-item "one"]
[ant/menu-item "two"]
[ant/menu-item "three"]])
(defn dd [] [ant/dropdown {:overlay menu}])
antd.inc.js:32809 Uncaught TypeError: Cannot read property 'props' of undefined
in the Dropdown.render
functionmaybe [ant/dropdown {:overlay #(r/as-element [menu])}]
? just guessing
where did you get the attribute overlay
from?
er... prop
overlay comes from the original ant-design docs:
import { Menu, Dropdown, Icon } from 'antd';
const menu = (
<Menu>
<Menu.Item>
<a target="_blank" rel="noopener noreferrer" href="http://www.alipay.com/">1st menu item</a>
</Menu.Item>
<Menu.Item>
<a target="_blank" rel="noopener noreferrer" href="http://www.taobao.com/">2nd menu item</a>
</Menu.Item>
<Menu.Item>
<a target="_blank" rel="noopener noreferrer" href="http://www.tmall.com/">3d menu item</a>
</Menu.Item>
</Menu>
);
ReactDOM.render(
<Dropdown overlay={menu}>
<a className="ant-dropdown-link" href="#">
Hover me <Icon type="down" />
</a>
</Dropdown>
, mountNode);
try [ant/dropdown {:overlay (r/as-element [menu])}]
hey that got me closer! errors went away, and some menus appear. they're misbehaving (not closing) but that might just be something in the antd api i need to explore
sure ☀️
while not reagent related, do you know how i can access files in the classpath? the author mentions something about it in the Usage part of the readme but i'm not entirely sure how it's done https://github.com/priornix/antizer#usage
.. or even how i can see what's in the classpath? trying to read that location as a resource fails.
(-> (
?
I don't know what your server setup is like
personally I prefer to serve assets from a static location anyway (S3?)
the whole "static resources in the jar" thing never struck me as ideal
i prefer to serve my css as part of my server build, as in from /resources/public/css, however i don't like exposing the entire bower's vendor or npm's node_modules directory, and building less with paths outside the resources directory doesn't work
some of my apps need to run in an intranet so cdns aren't always an option. haven't really figured out a good solution...
@joshkh, @daiyi and @saskia are working on this problem too, of serving static files as part of a JAR