Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
router1-react
Advanced tools
React components to use https://github.com/zxbodya/router1 library in react js application.
Used to pass router
context variable into components when rendering.
can be used as following:
// router - router1 instance
// renderApp - function that will render your app virtual dom
ReactDOM.render(
<RouterContext.Provider value={router}>
...
</RouterContext.Provider>,
appElement
);
Used to generate links with router1, will handle user clicks and can highlight active links.
<Link route="contact" activeClassName="active" params={{routeParam: "value"}}>Contact</Link>
Also you can pass additional state data(to be used later when handling route change) using optional data param:
<Link
route="contact"
activeClassName="active"
params={{routeParam: "value"}}
state={{ noscroll: true }}
>
Contact
</Link>
Similar to Link
it can be used to highlight some block when route is active.
For example, when you need to add active
class to li
instead of link:
<ActivateWrap route="contact" activeClassName="active" params={{routeParam: "value"}} component="li">
<Link route="contact" params={{routeParam: "value"}}>Contact</Link>
</ActivateWrap>
FAQs
React components to use with router1
We found that router1-react 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.