Skip to content

Conversation

@DogSoulDev
Copy link

Blog with API. All info on the .pdf

Thank you.

<!-- Modal Post -->


<div class="modal fade" id="modal__wrapp" tabindex="-1" aria-labelledby="modal__wrapp" aria-hidden="true">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tags could be more semantic in the modal sections

.then(response => response.json())
.then(data => data)
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this{ and }catch{} could be used here


function displayPost() {
getPost().then(dataPost => {
for(let i = 0; i < 20; i++) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

map () is better

}

// crear el plantilla del post html

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A refactor with smaller functions might help structure and readability

@@ -0,0 +1,28 @@
/* Event Modal
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps it would be better to pass the postStructure function in this file

Copy link

@Gaerste Gaerste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

files should be better organized and can be refactored

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants