Fork me on GitHub
#reagent
<
2017-11-08
>
fabrao01:11:17

Hello all, is that possible to use react component with reagent?

maleghast01:11:19

@fabrao - I am not sure that I understand the question and I am definitely not the guy you want to help you, as I am a dreadful n00b…

maleghast01:11:41

…nonetheless, the other people in here are lovely / helpful, so hopefully…

fabrao01:11:34

My question is, do I have to include React.js into project to use some React component? Component like this https://github.com/yuanyan/halogen

maleghast02:11:20

@fabrao - I don’t think so, as Reagent has React as a dependency already and so React.js is present if you are using Reagent.

pesterhazy08:11:26

Most js libraries will be compiled to expect react as window.React

pesterhazy08:11:54

But it’s a good idea to check

fbielejec14:11:41

Hello everybody, I'm researching reagent solutions to serve meta tags from components. App uses pushy and is prerendered (http://www.prerenderer.io). Basically I'm looking for possibilities to make reagent render meta tags also.

worlds-endless16:11:21

Any ideas on this?

Olical16:11:26

Looks like that's probably a bug.

juhoteperi17:11:40

@worlds-endless Answered on the issue. Cause is clear and I do have idea on fix.

juhoteperi17:11:17

Also, mentioned a workaround which should work now

tungsten21:11:01

Has anyone here had issues with multiple material-ui text-inputs in a form? It seems like if there are two text-inputs in a form the on-submit event doesn't get emitted on keypress

ajs11:11:49

Wouldn't you want an on key press event?

gadfly36121:11:37

@bfast Apologies in advance bc this doesnt answer your question. I have used material-ui ... but without using a form. I just check the values of all the inputs i care about on-click of a button and add an event listener to trigger on Enter and that has worked out well for me.

tungsten21:11:55

FWIW, this doesnt' seem specific to material UI, I am getting the same behavior with regular inputs under a form