Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • May 10 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 25 17:12
    @mstellaluna banned @cmal
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:09
    thecodingaviator commented #31179
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:07
    thecodingaviator commented #31182
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator commented #31190
  • Apr 01 18:05
    thecodingaviator commented #31157
  • Apr 01 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 18:04
    thecodingaviator closed #31157
  • Apr 01 18:04
    thecodingaviator closed #33788
  • Apr 01 18:04
    thecodingaviator commented #33788
  • Apr 01 18:02
    thecodingaviator closed #31059
  • Apr 01 18:02
    thecodingaviator commented #31059
BrianWilliams28
@BrianWilliams28
@sjames1958gm i don't know how to use recursion to do that
Stephen James
@sjames1958gm
@diomed
In the simplest terms, the tilde matches the most recent minor version (the middle number). ~1.2.3 will match all 1.2.x versions but will miss 1.3.0.

The caret, on the other hand, is more relaxed. It will match the most recent major version (the first number). ^1.2.3 will match any 1.x.x release including 1.3.0, but will hold off on 2.0.0.
Christopher McCormack
@cmccormack
@JLuboff do you have to do something in the app.js file to add images and css? app.js appears to be the node server
May Kittens Devour Your Soul
@diomed
thanks @sjames1958gm
CamperBot
@camperbot
diomed sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8447 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Stephen James
@sjames1958gm
@BrianWilliams28 You could loop through the array replacing any inner array with the contents of the array
Then loop over that until there are no inner arrays
Margaret Greaney
@greaneym
I changed the word image to the standard "img" but it still does not render correctly. React may render this differently?
Gersho
@Gersho
i'm still starting in react so i wouldn't know ^^
Margaret Greaney
@greaneym
@Gersho, thanks for your help, though
CamperBot
@camperbot
greaneym sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
api offline
Christopher McCormack
@cmccormack
@greaneym why not use JSX? so much easier to work with
Jason Luboff
@JLuboff
@cmccormack No...you shouldn't have to unless you want a page served automatically (which isn't the case). Did you check Dev tools?
Margaret Greaney
@greaneym
@cmccormack , I would but how do you use sass with inline styles?
May Kittens Devour Your Soul
@diomed
@sjames1958gm can python mix with other programming languages? like , can it be embedded into them
Christopher McCormack
@cmccormack
@greaneym you can just use classes
you don't have to use inline styles for everything
Margaret Greaney
@greaneym
So far I can either use style={} with jsx, or not use jsx and use className=.
Stephen James
@sjames1958gm
@greaneym store the json into your component state - then use jsx in your render() function - don't try building HTML like you are doing.
Margaret Greaney
@greaneym
I haven't found any good examples of that yet, any pointers/
Gersho
@Gersho
oh by the way i have a question about classes, i can't seem to get the difference between a constructor function and a class, so what's the deal ?
Christopher McCormack
@cmccormack
<div className='someclass'>{stuff}</div>
Stephen James
@sjames1958gm
@diomed There are libraries that let you call python from inside of say a c++ program. But, not sure that is what you are asking.
Christopher McCormack
@cmccormack
@JLuboff well some of the css loaded...
Margaret Greaney
@greaneym
@sjames1958gm , thanks I will look at how to do that. But I was kind of surprised to find you could use classNames with ReactDom.
CamperBot
@camperbot
greaneym sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8448 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Jason Luboff
@JLuboff
@cmccormack ...thats a start..
Stephen James
@sjames1958gm
@greaneym className is used inside of jsx because class is a reserved word in js
Christopher McCormack
@cmccormack
@JLuboff but only after I added this in my node config css = fs.readFileSync('portfolio.css'); andres.write(css);` later on
errors now :)
Jason Luboff
@JLuboff
huh.. wierd. I'm guessing its using vanilla node and not express? I develop with express which makes things easier but I don't know that that would affect those files
Christopher McCormack
@cmccormack
@greaneym you should try using react components and only use react dom to attach your app to the Dom
Margaret Greaney
@greaneym
@cmccormack , I've seen the example where the reactDOM is used in the index.js to render the app, and everything else is in App.js or whatever.js. So follow this example, you are saying.
Christopher McCormack
@cmccormack
I think personally it's much cleaner
Margaret Greaney
@greaneym
@cmccormack , I am a react newbie. thanks
CamperBot
@camperbot
greaneym sends brownie points to @cmccormack :sparkles: :thumbsup: :sparkles:
:star2: 1195 | @cmccormack |http://www.freecodecamp.com/cmccormack
Gersho
@Gersho

I've seen the example where the reactDOM is used in the index.js to render the app, and everything else is in App.js or whatever.js. So follow this example, you are saying.

oh, that's the part i was reading yesterday, codeacademy \o/

Christopher McCormack
@cmccormack
@greaneym here's an example I made, similar to the markdown viewer - https://codepen.io/cmccormack/pen/rwqLyr
@greaneym but if I remade it now I would probably use more functional components
Ronique Ricketts
@RoniqueRicketts
Hey guys i'm back
IMG_20170907_134246.jpg
IMG_20170907_134254.jpg
Margaret Greaney
@greaneym
is it ok to look at this? I haven't been looking at people's codepens. But I need to get clearer examples , so I will look. Hope that is all right.
Ronique Ricketts
@RoniqueRicketts
This is what outside looks like right not in Jamaica
Christopher McCormack
@cmccormack
@greaneym that's why I shared it :) it's not one of the actual FCC projects, just something I made to help me parse some documents for work
Gersho
@Gersho
@greaneym it's ok to look at everything, as long as you don't copy stuff you don't understand
Tiago Correia
@tiagocorreiaalmeida
image.png