I'm currently following a YouTuber who has kindly uploaded his codebase to here. I have been following his video closely, but for some reason when I type in npm start in my console I get the project compiling successfully, but nothing appears in the browser. I have tried restarting numerous times, but to no avail and as I'm new to React.js I don't know how to stat debugging this app. My buggy branch is here. Any thoughts or suggestions are greatly appreciated.
UPDATE: I've narrowed the bug to the Button.js component, but I'm not sure why the commented out code isn't working.
// import React from 'react';
// import { Link } from 'react-router-dom';
// import './Button.css';
// const STYLES = ['btn__primary', 'btn__outline'];
// const SIZES = ['btn__medium', 'btn__large'];
// export const Button = ({
// children,
// type,
// onClick,
// buttonStyle,
// buttonSize
// }) => {
// const checkButtonStyle = STYLES.includes(buttonStyle) ? buttonStyle : STYLES[0];
// const checkButtonSize = SIZES.includes(buttonSize) ? buttonSize : SIZES[0];
// return (
// <Link to='/' className='btn__mobile'>
// <Button
// className={`btn ${checkButtonStyle} ${checkButtonSize}`}
// onClick={onClick}
// type={type}
// >
// {children}
// </Button>
// </Link>
// );
// };
import React from 'react';
import { Link } from 'react-router-dom';
import './Button.css';
export function Button() {
return (
<Link to='sign-up'>
<button className='btn'>Sign Up</button>
</Link>
);
}