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