Hi React.js community Friends ,
Below copycat exercise project is not working even though all the code is correct.
Please review and help below code working
https://www.codecademy.com/workspaces/63b5010bfea1e4eec164c6e8
CopyCat.js
import React from 'react';
import ReactDOM from 'react-dom';
import {styles} from '../styles';
const images = {
copycat: 'https://content.codecademy.com/courses/React/react_photo_copycat.png',
quietcat: 'https://content.codecademy.com/courses/React/react_photo_quietcat.png'
};
export class CopyCat extends React.Component {
This file has been truncated. show original
CopyCatContainer.js
import React from 'react';
import ReactDOM from 'react-dom';
import {CopyCat} from '../components/CopyCat';
const images = {
copycat: 'https://content.codecademy.com/courses/React/react_photo_copycat.png',
quietcat: 'https://content.codecademy.com/courses/React/react_photo_quietcat.png'
};
This file has been truncated. show original
styles.js
const fontFamily = 'Comic Sans MS, Lucida Handwriting, cursive';
const fontSize = '5vh';
const backgroundColor = '#282c34';
const minHeight = '100vh';
const minWidth = 400;
const display = 'flex';
const flexDirection = 'column';
const alignItems = 'center';
const justifyContent = 'center';
const color = 'white';
This file has been truncated. show original
Appreciate your help on this
Thanks,
Sudhakar
Hi Sundhakar,
Could you provide the error you’re getting and when you get it?
Hi ,
It is not rendering anything. It is just showing up blank page.
Can you please try to run the code I provided . Not sure how w to debug that
Thank you for your help. Appreciate it.
Sudhakar
Hi,
Did you manage to fix your code, if by some chance not I think it might be that you are missing a comma after the state copying: true and before input: ‘’, its an object so they need to be separated by a comma
1 Like