
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
react-contextual-router
Advanced tools
React Contextual Router is a routing library for React for conditional component loaded based on the user context. For instance, is the user using the app on a wide screen, is the user using a pointer device, has the user seen a component. Based on this information you can then load component A or B to better suit functionality to the context of the user.
For now, this is an experiment in porting ConditionerJS to React.
<ContextRouter>
<Context matches="media:{(min-width:50em)} and element:{was visible}">
<p>Only show on big viewports when the element has been scrolled into view.</p>
</Context>
<Context matches="*">
<p>If the above is not matched, show this instead.</p>
</Context>
</ContextRouter>
FAQs
Declarative context based routing for React
The npm package react-contextual-router receives a total of 4 weekly downloads. As such, react-contextual-router popularity was classified as not popular.
We found that react-contextual-router 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.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.