In the MacOS finder I made a folder called ReactConf-Lyle.
When I ran react-create (next step) - I got an error about the name having upper case. So in finder I changed the name to react-conf-2021-lyle
I then Dropped the folder onto Visual Studio Code
In Visual Studio Code I used Ctrl+~ to open the terminal drawer at the bottom and then ran these commands.
I like to have my git repo started first off.
git initCreate a TypeScript React App
npx create-react-app . --template typescriptLearn more about create-react-app.
While this was running Visual Studio Code brought up a message about how git was having trouble keeping up and suggested that we add
/node_modulesto the project's .gitignore file. - I just said yes to this dialog.
I decided that documenting things would be good so I made this file, and moved the react-create generated README.md file to be react-create-README.md - and then made a README.md for this project.
create-react-app has a great return message... I went ahead and made a folder for keeping screenshots and here is an image of what I got back
I then made the first commit by running these two commands:
git add .
git commit -m "Initial Commit with React Create"
- Made an UploadArea component, and a utility for said.
- Pulled the react logo
- put some styling in the main css file - not happy with this - clean it up later?
- Create an ImageCanvas Component that renders the image
- Provide a toggle for Cover and Fit of the image
- Create a PasteMessage Component
- Add an event listener for
onpaste - Add a "button" for using
navigator.clipboard - Ensure we always use HTTPS
- Small main page layout cleanup
- In the talk I mention a bunch of things - it seems like having these things all in one place would be useful.
- Add React Conf and logo to the app