These are chat archives for FreeCodeCamp/Help

13th
Jan 2019
Levis
@agabyte
Jan 13 04:34
hi
Levis
@agabyte
Jan 13 04:40
anyone here?
abraham anak agung
@padunk
Jan 13 04:49
@agabyte yup
Anand Potukuchi
@anandpotukchi
Jan 13 04:51
yup
Levis
@agabyte
Jan 13 04:54
Hi @anandpotukchi and @padunk
I'm working on a my markdown previewer and I'm wondering if there's a better way of doing this;
var code = 'formatted';
/*  Preview  */
class Preview extends Markdown {
  constructor(props){ super(props); }
  render() {
    switch (this.props.input) {
      case '#':
        return (
          <div id = "preview">
            <h1> { this.props.input.substring(1) } </h1>
          </div>
        );                
      default:
        return (
          <div id = "preview">
            <p> { this.props.input } </p>
          </div>
        );      
    }// end switch    
  }// end render
}// end class
abraham anak agung
@padunk
Jan 13 04:56
@agabyte why you manually do it ? there is markdownJS for that.
Levis
@agabyte
Jan 13 04:58
@padunk unfortunately I can't use anything besides react, pure javascript, redux, jquery
I was thinking of using actions and a reducer, but I'm not exactly sure where to begin
abraham anak agung
@padunk
Jan 13 04:59
@agabyte if you read the requirement, you can use it tho. Doing compiling like that takes a lot of code.
and you don't need redux
I think everyone doing Markdown Previewer challenges using markedJS.
Levis
@agabyte
Jan 13 05:00
well if you say so...
abraham anak agung
@padunk
Jan 13 05:01
@agabyte from Markdown Previewer challenges page
User Story #4: When I enter GitHub flavored markdown into the #editor element, the text is rendered as HTML in the #preview element as I type (HINT: You don't need to parse Markdown yourself - you can import the Marked library for this: https://cdnjs.com/libraries/marked).
Anand Potukuchi
@anandpotukchi
Jan 13 11:20
indosec and qa testing - ha;f the tests fail
Niraj Nandish
@Nirajn2311
Jan 13 16:10
@diomed wheres my fav :cat: today?
May Kittens Devour Your Soul
@diomed
Jan 13 16:20
@Nirajn2311 I'm here
are you up for a game?
Niraj Nandish
@Nirajn2311
Jan 13 16:21
:thumbsup:
May Kittens Devour Your Soul
@diomed
Jan 13 16:22
one or two? or moar? :yum:
Niraj Nandish
@Nirajn2311
Jan 13 16:22
One
May Kittens Devour Your Soul
@diomed
Jan 13 16:22
ahhh
Niraj Nandish
@Nirajn2311
Jan 13 16:23
You're not going to believe this
May Kittens Devour Your Soul
@diomed
Jan 13 16:23
wut?
Niraj Nandish
@Nirajn2311
Jan 13 16:24
Our education system gave us two weeks to study for computer science
Two weeks
And it is for finals
May Kittens Devour Your Soul
@diomed
Jan 13 16:24
you smart. u can do it
Niraj Nandish
@Nirajn2311
Jan 13 16:25
we just need two days
And it is the last subject
maths is on 18th march
and then comp on 2 april
Luc Martin
@fmartin5
Jan 13 16:26
:/
May Kittens Devour Your Soul
@diomed
Jan 13 16:26
sounds fun
Niraj Nandish
@Nirajn2311
Jan 13 16:26
Im seriously not going to study for the first week
May Kittens Devour Your Soul
@diomed
Jan 13 16:26
:trollface:
Niraj Nandish
@Nirajn2311
Jan 13 16:26
fun, hah its going to be boredom in hell
May Kittens Devour Your Soul
@diomed
Jan 13 16:26
what? why
Niraj Nandish
@Nirajn2311
Jan 13 16:27
Why for what
May Kittens Devour Your Soul
@diomed
Jan 13 16:27
why u aint gonna study
Niraj Nandish
@Nirajn2311
Jan 13 16:28
there is two weeks to study
and i need only 3 days to learn c++
May Kittens Devour Your Soul
@diomed
Jan 13 16:29
darn these kids today. so ├╝bersmart
_ O _ _ S
_ _ _ N
Niraj Nandish
@Nirajn2311
Jan 13 16:30
What can i say we are the next gen
W
May Kittens Devour Your Soul
@diomed
Jan 13 16:30
he even predicts letters correctly
_ O _ _ S
W _ _ N
Niraj Nandish
@Nirajn2311
Jan 13 16:30
A
May Kittens Devour Your Soul
@diomed
Jan 13 16:31
_ O _ _ S
W A _ N
Niraj Nandish
@Nirajn2311
Jan 13 16:31
R
May Kittens Devour Your Soul
@diomed
Jan 13 16:31
noR
Niraj Nandish
@Nirajn2311
Jan 13 16:32
E
May Kittens Devour Your Soul
@diomed
Jan 13 16:32
ne
Niraj Nandish
@Nirajn2311
Jan 13 16:32
I
May Kittens Devour Your Soul
@diomed
Jan 13 16:32
even twice
_ O _ I S
W A I N
Niraj Nandish
@Nirajn2311
Jan 13 16:32
U :smiling_imp:
May Kittens Devour Your Soul
@diomed
Jan 13 16:33
_ O U I S
W A I N
Niraj Nandish
@Nirajn2311
Jan 13 16:33
Louis Wain
May Kittens Devour Your Soul
@diomed
Jan 13 16:33
:congratulations: @Nirajn2311 :tada:
Niraj Nandish
@Nirajn2311
Jan 13 16:33
Kitty artist
May Kittens Devour Your Soul
@diomed
Jan 13 16:33
you got it!
Yugandhar J
@yugandharje_twitter
Jan 13 17:56
Hi All
Need help from any one
Niraj Nandish
@Nirajn2311
Jan 13 18:16
@yugandharje_twitter what help?
Levis
@agabyte
Jan 13 23:06
hello