Open dcritchlow opened 6 years ago
I dont see the Cookie.js folder do i have to make one and do this? There is a failing test now that will go green when this is done. Tests can be run by running yarn test in a git bash window
Open Cookie.js file in Components folder In between the
with your own width and height values you like 😄 Testing in a browser window Right now we will need 3 git bash windows One window you will type yarn dev into One window you will type yarn webpack into The last window you will type yarn test With those running you will see the failing test in one of them and the other two will let you visit http://localhost:8888/ to see your cookie picture in the browser
We need to pick a cookie image we want to use and display it in the html
There is a failing test now that will go green when this is done. Tests can be run by running
yarn test
in a git bash window<div> </div>
elements add an<img>
component<img />
element will need three attributes a. The first attribute issrc="images/cookie.png"
b. You will need to find an image of a cookie and save it in the folderCookie-Clicker/public/images
with the filenamecookie.png
. Make sure it is a png file.width=""
andheight=""
a. You can choose any values you like forwidth
andheight
e.g.100px
img
element should look like this<img src="images/cookie.png" width="100px" height="100px" />
with your own width and height values you like 😄Testing in a browser window
Right now we will need 3 git bash windows One window you will type
yarn dev
into One window you will typeyarn webpack
into The last window you will typeyarn test
With those running you will see the failing test in one of them and the other two will let you visit http://localhost:8888/ to see your cookie picture in the browser