learnyoureact icon indicating copy to clipboard operation
learnyoureact copied to clipboard

Lesson 3 (Props) canonical answer does not pass tests

Open entendu opened this issue 7 years ago • 4 comments

Lesson 3 is fairly confusing all the way around, but one egregious issue is that the canonical answer won't pass tests: https://github.com/workshopper/learnyoureact/blob/fa578ba8ae498b297b9b532336fad5677c07b5c3/exercises/props/solution/views/index.jsx#L19

5.  ACTUAL:    "        <table style=\"border:2px solid black\">"
5.  EXPECTED:  "        <table style=\"border:2px solid black;\">"

entendu avatar Jan 11 '18 03:01 entendu

@entendu This is an error caused by the difference between the version of react being used by learnyoureact to evaluate the solution and the version you have installed. In general, the whole workshop should be updated to be consistent with the latest version of react

elyalvarado avatar Feb 26 '18 03:02 elyalvarado

so what is the solution ? I mean how do you submit the right code ?

zskiredj avatar May 15 '18 19:05 zskiredj

you can just escape it in .jsx

<table style={{border: "2px solid black\;"}}>

ptraverse avatar Dec 12 '18 00:12 ptraverse

I changed the code by <table style={{border: "2px solid black\;"}}> and work well

jpgotopo avatar Dec 26 '20 07:12 jpgotopo