Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

@lundiak/react-sum

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lundiak/react-sum

ReactJS component to show sum of 2 numbers, as npm package.

Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

React Sum

ReactJS component to show sum of 2 numbers, as npm package.

Installation

npm install --save @lundiak/react-sum

How To Use

First import this component where you want to use it

import ReactSum from '@lundiak/react-sum'

And you ready to use component in `render()``

<ReactSum />

Props

PropDescriptionDefault value
aa2
bb2

Example

import React, { Component } from 'react';
import ReactSum from '@lundiak/react-sum';

class App extends Component {
  render() {
    return (
        <ReactSum a={2} b={3}/>
    );
  }
}

export default App;

Resources

About rename .babelrc to babel.config.js and how this fix import-ing issue.

  • https://github.com/babel/babel/issues/7879
  • https://github.com/babel/babel/issues/8577
  • https://github.com/babel/babel/issues/8711

FAQs

Package last updated on 07 Apr 2019

Did you know?

Socket

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.

Install

Related posts