Router
$ npm install --save react-router-dom
Router
$ npm install --save react-router-dom
router
app.get('/', function (req, res) {
res.send('Hello World!')
})
router
// wiki.js - Wiki route module.
var express = require('express');
var router = express.Router();
// Home page route.
router.get('/', function (req, res) {
res.send('Wiki home page');
})
// About page route.
router.get('/about', function (req, res) {
res.send('About this wiki');
})
module.exports = router;
how router makes descisopn
Destitnaion in routing table(Is the destintion there or not.)
Longest match.
AD Lowest wins.
Depends on the rotingprotocol metric(RIP - hops & OSTF - cost)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us