Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Icestark is a JavaScript library for multiple react projects, Ice workbench solution.
Icestark is a JavaScript library for multiple react projects, Ice workbench solution.
npm install icestark --save
import React from 'react';
import ReactDOM from 'react-dom';
import { AppRouter, AppRoute } from 'icestark';
class Layout extends React.Component {
onRouteChange = (pathname, query) => {
console.log(pathname, query);
}
render() {
return (
<div>
<div>this is common header</div>
<AppRouter
onRouteChange={this.onRouteChange}
useShadow
>
<AppRoute
path={['/', '/home', '/about']}
exact
title="主页"
url={['//127.0.0.1:4444/js/index.js', '//127.0.0.1:4444/css/index.css']}
/>
<AppRoute
path="/user"
title="用户页面"
url={['//127.0.0.1:5555/js/index.js', '//127.0.0.1:5555/css/index.css']}
/>
</AppRouter>
<div>this is common footer</div>
</div>
);
}
}
Property | Description | Type | Default |
---|---|---|---|
onRouteChange | callback executed when route changed | function | noop |
NotFoundComponent | render when the route changed error | ReactElement | |
BundleErrorComponent | render when the bundle pulls an error | ReactElement | |
BundleLoadingComponent | render when Bundle is Loading | ReactElement | |
shadowRoot | whether to use shadowRoot | boolean | false |
Property | Description | Type | Default |
---|---|---|---|
path | app router path, reference react-router, required | string/string[] | |
url | assets load url, required | string/string[] | |
title | documentTitle | string | |
exact | reference react-router | boolean | false |
strict | reference react-router | boolean | false |
sensitive | reference react-router | boolean | false |
FAQs
Icestark is a JavaScript library for multiple react projects, Ice workbench solution.
The npm package icestark receives a total of 12 weekly downloads. As such, icestark popularity was classified as not popular.
We found that icestark demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.