Framework7.registerComponent() Custom component not rendering

<!DOCTYPE html>
<html>
<head
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
        <meta name="theme-color" content="#2196f3">
        <meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data:">
        <title>Mail</title>
        <!-- custom aurora css file -->
        <!-- <link rel="stylesheet" href="./filtered_aurora_theme_with_rules.css"> -->
        <!-- v8 css file -->
        <link rel="stylesheet" href="https://unpkg.com/[email protected]/framework7-bundle.min.css"> 
        <link rel="stylesheet" href="https://unpkg.com/framework7-icons">
</head>

<body>
    <div id="app"></div>

    <div class="page-content">
        <h3> stfu</h3>
        
        <div class="list">
            <ul>
                <my-list-item id="item-1"></my-list-item>
            </ul>
        </div>



    </div>


    <script src="https://unpkg.com/[email protected]/framework7-bundle.min.js"></script>
<script> 

    
    Framework7.registerComponent(
    // component name
    'my-list-item',

    // component function
    (props, { $h }) => {
        let foo = 'bar';

        return () => $h`
        <li class="item-content" id="${props.id}">...</li>
        `
    }
    )
    const app = new Framework7({
      el: '#app',
      theme: 'aurora',
      routes: [
        {
          path: '/',
          master: true,
          url: './index.html',
        },
      ],
    });


</script>

    </body>


</html>

this is my whole code, i am trying to render the same custom component given in the docs but nothing is appearing. i am new to this, so help a guy out.

There is no error or anything, the custom list component is not returned.

Please see the docs on how to start fresh with a Framework7 app. From a first view on your snippet, you placed the <my-list-item> outside the app container (<div id="app">).
Try using the Framework7 routes to create a new page in your app and place your custom component on there. Or simply use a starter template from Framework7 CLI (see the docs).
Hope to be helpful!