Fork me on GitHub
#reagent
<
2017-10-10
>
binora04:10:21

@dhirensr1 did you try again ?

niquola15:10:38

Hi all, how to get react class from reagent component to use react decoration - i.e. wrap reagent component by react component?

bigdaddys1oth19:10:23

It's a nav bar. It's really mess js code. I basically want to know so I can get an idea how to make a nav bar for this company's site (that I'm interning at) to give them cleaner code base for their website. The current HTML5 for the home page alone is...ridiculous for what little it does.

reefersleep21:10:54

I hope someone can help you. I don’t know react, really 🙂 But isn’t it really a case of adding styling to a div with buttons in it? I mean, what you want to achieve. And then add styling for those elements. I mean, don’t you really only need to port the css and then re-do the components in sane reagent?

reefersleep21:10:53

(defn my-nav-bar []
  [:ul [:a.class-for-links {:href “some-url”} “title”] [:a.class-for-links {:href “some-other-url”} “title2"]])

reefersleep21:10:33

or [:div [:button]] or whatever you want

mikethompson22:10:07

@bigdaddys1oth a nav bar? Utter mess? I'm not seeing either particularly. Looks like one component, called Example, wraps another component called InfinityMenu ... to which it provides a set of callbacks. To get good quality responses from us, please be sure to carefully ask specific questions.