Skip to content

Conversation

@dhmoon11
Copy link
Contributor

JS과제제출

Copy link

@sangheon-kim sangheon-kim left a comment

Choose a reason for hiding this comment

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

부족한점 코멘트 드렸습니다.

const theFooter = new TheFooter().el
const routerView = document.createElement('router-view')

this.el.append(

Choose a reason for hiding this comment

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

방식 통일 부탁드립니다.

export default class Headline extends Component {
render() {
this.el.classList.add('headline')
this.el.innerHTML = /* html */ `

Choose a reason for hiding this comment

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

위파일이랑 어떤걸로 할지 방식 통일 부탁드립니다.

movie
}).el)
)

Choose a reason for hiding this comment

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

Fragment노드 쓰시는것 추천드립니다.

acc[key] = value
return acc
}, {})
history.replaceState(query, '')

Choose a reason for hiding this comment

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

pushState, replaceState 차이도 알아보세요

const headline = new Headline().el
const search = new Search().el
const movieList = new MovieList().el
const movieListMore = new MovieListMore().el

Choose a reason for hiding this comment

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

el을 처음부터 내보내주면 되지않나요?


try{
// const res = await fetch(`https://omdbapi.com?apikey=7035c60c&s=${store.state.searchText}&page=${page}`)
const res = await fetch('/api/movie', {

Choose a reason for hiding this comment

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

Fetch는 분리해주세요

store.state.loading = false
}
}
export const getMovieDetails = async id => {

Choose a reason for hiding this comment

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

api함수끼리는 분리 부탁드립니다.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants