
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-flowkit
Advanced tools
A lightweight React library that provides convenient components for declarative flow control in React applications. React FlowKit transforms how you handle conditional rendering, iterations, and flow control with a clean, component-based approach.
npm install react-flowkit
# or
yarn add react-flowkit
# or
pnpm install react-flowkit
import { IfElse, If, Else } from 'react-flowkit';
// Method 1: Using children
<IfElse condition={isLoggedIn}>
<If>Welcome, User!</If>
<Else>Please log in</Else>
</IfElse>
// Method 2: Using props
<IfElse
condition={isLoggedIn}
if={<div>Welcome, User!</div>}
else={<div>Please log in</div>}
/>
// Method 3: Only If
<If condition={isLoggedIn}>Welcome, User!</If>
import { SwitchCase, Case, Default } from 'react-flowkit';
<SwitchCase value={status}>
<Case value="loading">Loading...</Case>
<Case value="error">An error occurred!</Case>
<Case value="success">Data loaded successfully!</Case>
<Default>Unknown status</Default>
</SwitchCase>
// Alternative approach using default prop
<SwitchCase
value={status}
default={<div>Unknown status</div>}
>
<Case value="loading">Loading...</Case>
<Case value="error">An error occurred!</Case>
<Case value="success">Data loaded successfully!</Case>
</SwitchCase>
import { ForEach } from 'react-flowkit';
<ForEach data={users}>
{(user, index) => (
<div key={user.id}>
{index + 1}. {user.name}
</div>
)}
</ForEach>
import { StringCase } from 'react-flowkit';
// Transform to different cases
<StringCase type="uppercase">hello world</StringCase> // "HELLO WORLD"
<StringCase type="lowercase">HELLO WORLD</StringCase> // "hello world"
<StringCase type="sentencecase">hello world</StringCase> // "Hello world"
<StringCase type="titlecase">hello world</StringCase> // "Hello World"
<StringCase type="camelcase">Hello World</StringCase> // "helloWorld"
<StringCase type="pascalcase">hello world</StringCase> // "HelloWorld"
<StringCase type="kebabcase">Hello World</StringCase> // "hello-world"
<StringCase type="snakecase">Hello World</StringCase> // "hello_world"
// Using custom delimiter
<StringCase type="camelcase" delimiter="-">custom-delimiter-string</StringCase> // "customDelimiterString"
<StringCase type="pascalcase" delimiter="_">custom_delimiter_string</StringCase> // "CustomDelimiterString"
<StringCase type="titlecase" delimiter=".">custom.delimiter.string</StringCase> // "Custom Delimiter String"
<StringCase type="snakecase" delimiter=" ">custom delimiter string</StringCase> // "custom_delimiter_string"
| Feature | Traditional React | React FlowKit |
|---|---|---|
| Conditional Rendering | {condition && <Component />} or ternary operator | <IfElse condition={...}> components |
| Switch Statements | IIFE with switch-case | <SwitchCase> component |
| List Rendering | Array.map() | <ForEach> component |
| Text Case Transformation | Utility functions | <StringCase> component |
| Code Readability | Mixed JSX and JS logic | Clear, declarative components |
Clone the repository:
git clone https://github.com/Sawannrl123/react-flowkit.git
cd react-flowkit
Install dependencies:
npm install
# or
yarn
# or
pnpm install
Run development mode:
pnpm dev
Build the library:
pnpm build
Run tests:
pnpm test
Run Storybook:
pnpm storybook
Build Storybook:
pnpm build:storybook
MIT
Special thanks to Varad for his valuable contributions to this project!
FAQs
A React library for building flow-based applications.
We found that react-flowkit demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.