You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Home.js / createDogElement() gets the job done but it is not super DRY. You are frequently re-writing the lines of code to create element, add properties, set innerHTML.
Home.js / createDogElement() gets the job done but it is not super DRY. You are frequently re-writing the lines of code to create element, add properties, set innerHTML.
Consider doing something like the example we saw on Tuesday in here:
https://github.com/oliverjam/learn-dom-rendering
From the same workshop, have a think about the difference between using
append
andappendChild
The text was updated successfully, but these errors were encountered: