GithubHelp home page GithubHelp logo

anjantalatam / react-navigation-bar-hackerrank Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 348 KB

React Navigation Bar Component Hackerarank

Home Page: https://codesandbox.io/s/react-navigation-bar-hackerrank-2dnjr6

Shell 3.22% HTML 15.54% JavaScript 76.35% CSS 4.89%
reactjs functional-components hackerrank hackerrank-solutions navbar component

react-navigation-bar-hackerrank's Introduction

React: Navigation Bar Component

Environment

  • React Version: 16.13.1
  • Node Version: 12(LTS)
  • Default Port: 8000

Application Demo:

Functionality Requirements

The component has the following functionalities:

  • There are 4 tabs: Home, News, Contact, About.
  • The default selected tab is the 'Home' tab.
  • Clicking on a tab renders the relevant content.
    • Clicking on the Home tab renders content 'HOME PAGE'.
    • Clicking on the News tab renders content 'NEWS PAGE'.
    • Clicking on the Contact tab renders content 'CONTACT PAGE'.
    • Clicking on the About tab renders content 'ABOUT PAGE'.
  • Since the default selected tab is the 'Home' tab, the default displayed content is 'HOME PAGE'.

Testing Requirements

  • The parents of 4 tabs has data-testid attribute 'navigation-tabs'.
  • The content section has data-testid attribute 'tab-content'.

Project Specifications

Read Only Files

  • src/App.test.js

Commands

  • run:
bash bin/env_setup && . $HOME/.nvm/nvm.sh && npm start
  • install:
bash bin/env_setup && . $HOME/.nvm/nvm.sh && npm install
  • test:
bash bin/env_setup && . $HOME/.nvm/nvm.sh && npm test

react-navigation-bar-hackerrank's People

Contributors

anjantalatam avatar

Stargazers

 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.