
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
😎 A react basic component library.
First need to install peerDependencies:
npm install react-polymorphic-types -D
then install this library:
npm install rc-basic
<Box as="a" href="xxx.com">xxx.com</Box>
<Box as="h3">h3</Box>
For more usage, please see react-polymorphic-types.
For example, with lists, a simple map is inefficient as it always maps the entire array.
Simple referentially keyed loop. The callback takes the current item as the first argument:
<For each={state.list} fallback={<div>Loading...</div>}>
{(item) => <div>{item}</div>}
</For>
The optional second argument is an index signal:
<For each={state.list} fallback={<div>Loading...</div>}>
{(item, index) => (
<div>
#{index()} {item}
</div>
)}
</For>
The Show control flow is used to conditional render part of the view: it renders children when the when is truthy, an fallback otherwise. It is similar to the ternary operator (when ? children : fallback) but is ideal for templating JSX.
<Show when={state.count > 0} fallback={<div>Loading...</div>}>
<div>My Content</div>
</Show>
Show can also be used as a way of keying blocks to a specific data model. Ex the function is re-executed whenever the user model is replaced.
<Show when={state.user} fallback={<div>Loading...</div>}>
{(user) => <div>{user.firstName}</div>}
</Show>
FAQs
😎 A react basic component library.
The npm package rc-basic receives a total of 5 weekly downloads. As such, rc-basic popularity was classified as not popular.
We found that rc-basic 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.