
Product
Introducing Custom Tabs for Org Alerts
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.
@lundiak/react-sum
Advanced tools
Experimental ReactJS component to show sum of 2 numbers. There is no reasonable purpose to use this component by anyone but me :)
Experiment related to Component creation process and usage of tools, such as: npm/yarn, ESLINT, Webpack, Babel, Create React App, CSS Modules (migrated from LESS) React Scripts, Storybook, Jest, Enzyme, Cucumber and CI tool Circle CI.
yarn add @lundiak/react-sumnpm install --save @lundiak/react-sumImport the component where you want to use it, and you ready to use it.
import ReactSum from '@lundiak/react-sum' for <ReactSum.Sum /> usage.or
import { Sum } from '@lundiak/react-sum'; for <Sum /> usage.| Prop | Description | Default value |
|---|---|---|
| a | a | undefined |
| b | b | undefined |
| Prop | Description | Default value |
|---|---|---|
| useImages | renders Sum sign as Image | false |
| useASCII | renders Sum sign as ASCII Math symbol | false |
How to add to your file MyApp.jsx:
import { Sum } from "@lundiak/react-sum";
export const MyApp = () => {
return <Sum a={2} b={3} />;
};
If component Sum is imported, then such line will cause TypeScript warnings about required params a and b.
const Test = () => <Sum />;
To look up what is actual typings, this code will be OK:
import { Sum } from "@lundiak/react-sum";
import type { SumProps } from "@lundiak/react-sum/types/components/sum/common";
interface MyData {
data: SumProps;
}
export const MySumExample = (props: MyData) => {
return (
<div>
<Sum a={props.data.a} b={props.data.b} />
</div>
);
};
2025
npmReact v19.xreact-scripts to Vite
npm init @eslint/config@latest) - guide@vitest/eslint-plugin (because legacy eslint-plugin-vitest refers to eslint v8).npm create vite@latestascii-math.d.ts => declare module "ascii-math"; to suppress TypeScript error.dist after npm run buildes5).tsconfig to expose *.d.ts files for external codebase imports)2021
FAQs
Experimental ReactJS component to show sum of 2 numbers.
We found that @lundiak/react-sum 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.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.