GithubHelp home page GithubHelp logo

project-survey's Introduction

Survey form with React

This week's project is to use React to build a survey form ⚛ . This project should consist of at least 3 questions that need to be answered by users. When the user presses submit, they should see a summary of their answers.

The problem

Before I started to code I decided what question I wanted to ask in the survey. After that I clarified the logic, I added the questions in different components and defined the states for each question in the Form.js component. I rendered all the questions and added some styling to the page. When I was done with the “core” of the survey I started to code the more advanced features:

  • Show different components
  • Show a summary of the user’s submissions

I had some problems understanding how to make it work. I solved it by asking my team members, my teacher during a one to one and looking through stackoverflow.

With this help I could manage to understand how to make every component on a separate page with the if else statement and add the function to the onSubmit. I also managed to send the value from the states in Form.js and add it to the summary component with props.

Tech

  • React
  • JSX
  • useState
  • JavaScript
  • CSS

View it live

https://confident-darwin-85f2e0.netlify.app/

project-survey's People

Contributors

mariapogosjan avatar emolsz avatar dependabot[bot] avatar idlefingers avatar jenniedalgren avatar puj 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.