Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make A Simple Button #215

Closed
peterchinh opened this issue Jan 7, 2025 · 0 comments
Closed

Make A Simple Button #215

peterchinh opened this issue Jan 7, 2025 · 0 comments

Comments

@peterchinh
Copy link
Contributor

To ease into the project, let's create a simple button on a new page!

Follow these steps:

  1. Navigate to /frontend/src/components/ and create a new directory named MyButton
  2. Create a MyButton.tsx and MyButton.css inside of the MyButton directory
  3. In MyButton.tsx, create a simple React component that renders a button.
  4. Navigate to /frontend/src/index.tsx, and import the MyButton component
  5. In index.tsx, add a React Router route to render the MyButton component at the /button path.

Add additional functionality and styling to your button (i.e. show your name when you click the button). Be creative!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants