Coder Social home page Coder Social logo

react-stateful-list---1---first-class-based-component-introducing-jsx-creating---ndgtih4lxqb0's Introduction

Stateful list

In this project we will be building a stateful list for showing movies.

We have a data object in src/components/App.js where the keys are years and values are array containing movie names.

Make a select input, where options are the years available in the data object. Also since we want to the select to have no option selected by default, make an option which has its value attribute set to null <option value={null}></option>.

So total number of options will be number of keys in the data object + 1 for the empty option.

Make a div with id="selected-year" which shows "No year selected" by default when no option(empty option) or when year is selected for example 2020 it shows "Selected year-2020".

On selecting the year from it shows the relevant movies from that year in an unordered list like in the demo.

react-stateful-list---1---first-class-based-component-introducing-jsx-creating---ndgtih4lxqb0's People

Contributors

afr0jahmed avatar

Watchers

 avatar  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.