fix(challenges): cherry pick pr 17664 & 17672 from main repo (#52)
parent
2b034e267b
commit
2375d0c98d
|
@ -30,7 +30,7 @@
|
|||
"text":
|
||||
"Create a <code>/* */</code> style comment that contains at least five letters.",
|
||||
"testString":
|
||||
"assert(code.match(/(\\/\\*)([^\\*\\/]{5,})(?=\\*\\/)/gm), 'Create a <code>/* */</code> style comment that contains at least five letters.');"
|
||||
"assert(code.match(/(\\/\\*)([^\\/]{5,})(?=\\*\\/)/gm), 'Create a <code>/* */</code> style comment that contains at least five letters.');"
|
||||
}
|
||||
],
|
||||
"challengeType": 1,
|
||||
|
|
|
@ -964,7 +964,7 @@
|
|||
"<blockquote>const Welcome = (props) => <h1>Hello, {props.user}!</h1></blockquote>",
|
||||
"It is standard to call this value <code>props</code> and when dealing with stateless functional components, you basically consider it as an argument to a function which returns JSX. You can access the value of the argument in the function body. With class components, you will see this is a little different.",
|
||||
"<hr>",
|
||||
"There is a <code>Calendar</code> and <code>CurrentDate</code> component in the code editor. When rendering <code>CurrentDate</code> from the <code>Calendar</code> component, pass in a property of <code>date</code> assigned to the current date from JavaScript's <code>Date</code> object. Then access this <code>prop</code> in the <code>CurrentDate</code> component, showing its value within the <code>p</code> tags. Note that for <code>prop</code> values to be evaluated as JavaScript, they must be enclosed in curly brackets, for instance <code>date={Date()}</code>."
|
||||
"There are <code>Calendar</code> and <code>CurrentDate</code> components in the code editor. When rendering <code>CurrentDate</code> from the <code>Calendar</code> component, pass in a property of <code>date</code> assigned to the current date from JavaScript's <code>Date</code> object. Then access this <code>prop</code> in the <code>CurrentDate</code> component, showing its value within the <code>p</code> tags. Note that for <code>prop</code> values to be evaluated as JavaScript, they must be enclosed in curly brackets, for instance <code>date={Date()}</code>."
|
||||
],
|
||||
"files": {
|
||||
"indexjsx": {
|
||||
|
|
Loading…
Reference in New Issue