folonite.js
Advanced tools
Comparing version 1.2.25 to 1.2.26
{ | ||
"name": "folonite.js", | ||
"version": "1.2.25", | ||
"version": "1.2.26", | ||
"description": "Folonite.js - The first lightweight framework that integrates dynamic server-side rendering (SSR), streaming capabilities, and an external component marketplace.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -1,4 +0,8 @@ | ||
export default function HeaderComponent() { | ||
return `<header><h1>Welcome to Folonite.js</h1></header>`; | ||
} | ||
// src/components/Header.js | ||
export default function Header(props) { | ||
return ` | ||
<header> | ||
<h1>${props.title || 'Default Title'}</h1> | ||
</header> | ||
`; | ||
} |
@@ -0,5 +1,6 @@ | ||
// src/pages/home.js | ||
export default function HomePage() { | ||
return ` | ||
<Component name="Header" /> | ||
<Component name="Header" props='{"title":"Welcome to Folonite.js"}' /> | ||
<main> | ||
<section style="margin-bottom: 30px;"> | ||
@@ -32,3 +33,2 @@ <p> | ||
</section> | ||
</main> | ||
@@ -38,1 +38,2 @@ <Component name="Footer" /> | ||
} | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54182
828