learnyoureact
learnyoureact copied to clipboard
Lesson 3 (Props) canonical answer does not pass tests
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 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
so what is the solution ? I mean how do you submit the right code ?
you can just escape it in .jsx
<table style={{border: "2px solid black\;"}}>
I changed the code by <table style={{border: "2px solid black\;"}}>
and work well