Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

react header

import React  from 'react'
import Container from 'react-bootstrap/Container';
import Nav from 'react-bootstrap/Nav';
import Navbar from 'react-bootstrap/Navbar';
export default function Header(){
   return(<>    
   <Navbar bg="dark" variant="dark">
           <Container>
             <Navbar.Brand href="#home">To DO</Navbar.Brand>
             <Nav className="me-auto">
                <Nav.Link href="#home">Home</Nav.Link>
               <form onSubmit={handleLogin} >
               <input type="text" placeholder="username" name="username"></input>
               <input type="password" placeholder="password" name="password"></input>
               <button className="btn1" type="submit"  >Login</button>
              </form> 
              <h5 id="head"> not a user !? signup here </h5>
              <form  >
               <input type="text" placeholder="username" name="username"></input>
               <input type="password" placeholder="password" name="password"></input>
              <button className="btn1" type ="submit" href="register" >signup</button>
             
              </form>
             </Nav>
           </Container>
         </Navbar>   
   </>)
 } 

Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript test if undefined 
Javascript :: how to have jsx tellisense vscode 
Javascript :: same file select angular second time not selected 
Javascript :: javascript prototype example 
Javascript :: how to assert input value in testing library 
Javascript :: deleting an instance in sequelize 
Javascript :: django csrf failed ajax 
Javascript :: how to categorize a data in an array of object in javascript 
Javascript :: search nested array in react javascript 
Javascript :: javascript filter array of objects 
Javascript :: schema mongoose 
Javascript :: leaflet geojson style stroke width 
Javascript :: start nodemon under wsl2 
Javascript :: es6 arrow function 
Javascript :: javascript get first entry from set 
Javascript :: full form of json 
Javascript :: react-bootstrap problem-import new version 
Javascript :: sort dates javascript 
Javascript :: number of edges between set of nodes networkx 
Javascript :: check if an array is empty 
Javascript :: ionic vue use .env 
Javascript :: Find largest number from array by function in javascript 
Javascript :: react-native-dropdown-picker for form react native 
Javascript :: change node bash root 
Javascript :: addeventlistener javascript multiple functions 
Javascript :: joi number of digits 
Javascript :: javascript conditional 
Javascript :: apollo graphql 
Javascript :: create angular app with routing 
Javascript :: await vuex dispatch true 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =