GithubHelp home page GithubHelp logo

a07102020's Introduction

Issue: tsx 'register' function is not setting username using the 'usernameRegister' value in file user/Register.jsx

Task: Get the register component to set the logged in username based on the register username field.

Background: I'm converting a .js file to jsx file. I'm learning React though exercises like this.

See lines:

Register.tsx lines 22 - This is where I am trying to set it (requires the other changes).

My attempt (commented out):

user/UserBar.tsx line 29 App.js lines 24,46 userBar.tsx line 29 Register.tsx lines 12,22

Original (plain js) version is user/Register_old.js

note that login.jsx is very similar (I can DRY later on), I converted it from js to tsx and works ok The main difference in Register is that I want to set the logged in username from the usernameRegister field instead of just from the username field that is used in Login.

Right now it logs you in OK... but uses the username from the login form field instead of registerUsername field.

Code to fix is in https://github.com/durrantm/a07102020

Price to fix is $20

Deliverable: Fix setting username from 'usernameRegistered' with as few changes as possible. Ignore other issues. Document (a line or two) if you add a new hook as to why.

a07102020's People

Contributors

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