Skip to content

consider some abstraction #36

Description

@yeo-yeo

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 and appendChild

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions