Code Monkey home page Code Monkey logo

juflix's Introduction

Juflix

Learning React and ES6 by building a Movie Discovery App.

Screens

  • Home
  • TV Shows
  • Search
  • Detail

API Verbs

  • Now playing (Movie)
  • Top Rated (TV, Movie)
  • Popular (TV, Movie)
  • Upcoming (Movie)
  • Airing Today (TV)
  • TV show Detail
  • Moive Detail
  • Search (TV, Movie)

Study

  1. 3.4 WithRouter
  • 정의: 라우트가 아닌 컴포턴트에서 라우터에서 사용하는 객체(prop? location, match, history)를 사용하려면 withRouter를 사용해야 한다.
  • Router Props: 브라우저와 리액트 앱의 라우터를 연결하게 되면 그 결과 라우터가 history api에 접근할 수 있게 되며, 각각의 Route와 연결된 컴포넌트에 props로 match, location, history라는 객체를 전달하게 된다. (출처: https://gongbu-ing.tistory.com/45)
  1. 5.2 async / await
  • async ComponentDidMount() { const nowPlaying = await moviesApi.nowPlaying(); console.log(nowPlaying); }
  • await가 붙음으로써 해당 코드가 finish 될 때까지 기다린 후 다음 코드를 진행. 예시 코드에서 api를 호출하는 요청이 끝난 후 console.log에서 nowPlaying을 출력. 없을 때는 기다리지 않고 출력.
  1. 6.1 children
  • react prop.
  1. 2.1 Fragment
  • 원하는 만큼 컴포턴트를 리턴하게 해 준다. <> </>

juflix's People

Contributors

injubi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.