Im stuck on exercise 6, everytime i put a code in it keeps replying with error, but when i use ‘get code’ it resets the whole thing and sends me back to exercise 1!! I repeated this task so many times. Can anyone help/
this is the question;
GuineaPigsContainer contains a lot of logic. It shouldn’t also have to render HTML-like JSX.
Delete any HTML-like JSX from GuineaPigsContainer’s render function’s return statement. Instead, return an instance of GuineaPigs. The new render function should look like this:
render: function () {
var src = GUINEAPATHS[this.state.currentGP];
return <GuineaPigs />;
}
this is what i have;
render: function () {
var src = GUINEAPATHS[this.state.currentGP];
return
<GuineaPigs src={src} />
}
Please help