
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
@lundiak/react-sum
Advanced tools
Experimental ReactJS component to show sum of 2 numbers.
Experiment related to Component creation process and usage of tolls, such as: npm, ESLINT, Webpack, Babel, Create React App, React Scripts, Storybook, Jest, Enzyme, Cucumber and CI tools.
npm install --save @lundiak/react-sum
Import the component where you want to use it, and you ready to use it in render().
Approach 1:
import ReactSum from '@lundiak/react-sum'
<ReactSum.Sum />
Approach 2:
import { Sum } from '@lundiak/react-sum';
<Sum />
| Prop | Description | Default value |
|---|---|---|
| a | a | 2 |
| b | b | 2 |
Your file MyApp.jsx:
import React, { Component } from 'react';
import { Sum } from '@lundiak/react-sum';
class MyApp extends Component {
render() {
return (
<Sum a={2} b={3}/>
);
}
}
export default MyApp;
npm install
npm test
Storybook
To run locally:
npm run storybook
Docz and Styleguidist and other
npm version patch
Note: it will run:
npm run prodBuild to build JSX files into dist folder.npm test to verify Component logic (but for now Jest and Cucumber uses dist folder files).npm run build-storybook to build local, static version of Storybook ready for publish.patch will increase SemVer patch only.About npm main, browser and module, jsnext:main, esm, esnext(2017)
If package.json has "main" field but not a "module" field, all files in that package are loaded as CommonJS. If a package.json has a "module" field but not "main" field, all files in that package are loaded as ES Modules. If a package.json has neither "main" nor "module" fields, it will depend on on whether an index.js or a module.js exists in the package as to whether to load files in the package as CommonJS or ES Modules respectively.
About rename .babelrc to babel.config.js and how this fix import-ing issue.
cucumber, since 2011, 979 commits
react-cucumber, since 2017, 16 commitsjest-cucumber, since 2018, 153 commits
math tag into JSX/React Valid element? This maybe be helpful.FAQs
Experimental ReactJS component to show sum of 2 numbers.
The npm package @lundiak/react-sum receives a total of 38 weekly downloads. As such, @lundiak/react-sum popularity was classified as not popular.
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.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.