React Router Route Wrapper (Typescript)

    0

    5

    react-router-dom
    Strong Snippets

    Wraps a set of Route components to reuse some layout/components between different routes.

    Your WrapperComponent must include an <Outlet /> component from react-router-dom to render correctly.

    Library: react

    Shortcut: wrap.react-router.route

    import React from 'react';
    import { Route } from 'react-router-dom';
    
    <Route element={<YourWrapperComponent />}>
       
    </Route>
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.