
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
react-mkx-experiments
Advanced tools
React custom experiments provide an efficient means to encapsulate and share logic among experiments within React Projects. This package includes useful React custom experiments.
You can install the package using npm:
npm install react-mkx-components
Or using yarn:
yarn add react-mkx-components
Input
Component
import React, { useState } from "react";
import { Input } from "react-mkx-components";
const MyComponent = () => {
const [value, setValue] = useState("");
return (
<div>
<Input
value={inputValue}
setValue={setValue}
placeholder="Enter your text"
/>
</div>
);
};
export default MyComponent;
Choice
Component
The Choice
component provides conditional rendering functionality with the following sub-components:
When
: Renders children when a condition is true.Then
: Renders children when a condition is false.And
: Renders children if both conditions are true.import { Choice } from "react-mkx-components";
const ExampleComponent = () => {
const condition = true;
return (
<div>
<Choice.When condition={condition}>
<p>This will be rendered if the condition is true.</p>
</Choice.When>
<Choice.Then condition={condition}>
<p>This will be rendered if the condition is false.</p>
</Choice.Then>
<Choice.And condition={condition}>
<p>This will be rendered if both conditions are true.</p>
</Choice.And>
</div>
);
};
export default ExampleComponent;
<ScrollDiv
page={currentPage}
setPage={setPage}
totalPage={totalPages}
style={{ backgroundColor: "lightgray", padding: "10px" }}
height={400}
>
{content}
</ScrollDiv>
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
---|---|---|---|---|---|
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
React custom experiments provide an efficient means to encapsulate and share logic among experiments within React Projects. This package includes useful React custom experiments.
The npm package react-mkx-experiments receives a total of 0 weekly downloads. As such, react-mkx-experiments popularity was classified as not popular.
We found that react-mkx-experiments 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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.