These are chat archives for MontCode/GeneralChat

14th
Aug 2016
Victor
@VictorHall
Aug 14 2016 01:27
im here
@davidjcastner
David Castner
@davidjcastner
Aug 14 2016 02:16
@VictorHall did you try anything yet code wise?
Victor
@VictorHall
Aug 14 2016 02:17
Not yet im kind of stuck. Im going to react js in code academy to see if i can learn more about it to solve my problem. Im learning about properties. this is what Im working on http://codepen.io/vhall_io/pen/vKQrQN?editors=1010
Im able to display my requested data in the component however what if the api returned a list of 10 search terms?
I wanted to make a dynamic list that appends the items in a loop to an ul element. Is there a way that i could store a ul list of items in a js variable ?
Then i could just call this variable in my react component's return
@davidjcastner
David Castner
@davidjcastner
Aug 14 2016 02:23
in react/jsx is there a way to loop over components?
Victor
@VictorHall
Aug 14 2016 02:29
in a way you can combine components
ill have to look more in to it
David Castner
@davidjcastner
Aug 14 2016 02:31
hmm, I'm not sure how much I'll be able to help with the react part of things. I use blaze and reactive variables for rendering.
Victor
@VictorHall
Aug 14 2016 02:33
ive never heard of blaze. ill look into it. im not sure which js framework i like most yet
David Castner
@davidjcastner
Aug 14 2016 02:34
look to see if there is some sort of reactive variable in react, then you should be able to create a component that loops over it
Victor
@VictorHall
Aug 14 2016 02:34
im so glad i found out about frameworks. plain js is disasterous
alright
David Castner
@davidjcastner
Aug 14 2016 02:36
https://www.meteor.com/developers <- this is what I use and it supports react, angular, or blaze
Victor
@VictorHall
Aug 14 2016 02:40
this is going on my bucket list of things to learn
theres just so much to learn it unbelievable