last day (16 days later) » 

11:28 AM
Hey
is it possible for me to share screen
not sure how to explain without
essentially i want to make an 'antitoggle'
when another toggle is toggled
 
12:23 PM
ok ... I've solved all of these issues ... just this last thing:

<Acc
title="Dolor eiusmod consectetur consequat magna nulla labore "
id="a1"
onToggle={onToggle}
active={"a1" === active}
/>
<Acc
title="Dolor eiusmod consectetur consequat magna nulla labore "
id="b2"
onToggle={onToggle}
active={"b2" === active}
/>
<Acc
title="Dolor eiusmod consectetur consequat magna nulla labore "
id="c3"
onToggle={onToggle}
active={"c3" === active}
/>
<Acc
title="Dolor eiusmod consectetur consequat magna nulla labore "
the 'id' tag is supposed to come from the database ... but I also have to initialise active=(id === active) but can't do that because id isn't defined. Is there a workaround this where I can put something like:

<Acc
title="Dolor eiusmod consectetur consequat magna nulla labore "
id="c3"
onToggle={onToggle}
active={{id} === active}
/>
 
12:42 PM
also, absolute last thing i swear ... is it possible to make the toggle sequential? so that it closes the other before it opens the new one
 
 
3 hours later…
3:35 PM
Sorry. I was AFK.
If you get the id from the database why do you need a work around?
About your last question, this is what it does now.
 
4:17 PM
If you want to DM me, you can find my details in my profile page - stackoverflow.com/users/863110/mosh-feu?tab=profile
 
4:30 PM
I can't find the dm details but i don't mind here
how will the database do that ... i imagine I can put some command like id='abcd' from the database
but how will active={'abcd' === active} go through? Are you saying I should send {x === active} from the database itself?
is there no way to just send 'x' and js itself will put it in the jsx exp?
 
 
4 hours later…
8:13 PM
> is there no way to just send 'x' and js itself will put it in the jsx exp?

Something like that.
I've changed the cards.json so it will return objects, similar the response the server can return. I also changed how App component treat this.
Take a look and tell me if it's clear.
 
8:35 PM
BTW, I added more links in my profile to linkedin, twitter and Slack. You can also send me an email to moshfeu.dev@gmail.com
 

  last day (16 days later) »