🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@magusn/components

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magusn/components - npm Package Compare versions

Comparing version
0.2.0
to
0.2.1
+5
src/Button.js
import * as React from 'react';
export function Button(props) {
return <button style={{ lineHeight: '24px' }}>{props.children}</button>;
}
import React from 'react';
import styles from './styles.module.css';
export function ExampleComponent({ text }) {
return <div className={styles.test}>Example Component: {text}</div>;
}
import { ExampleComponent } from '..';
describe('ExampleComponent', () => {
it('is truthy', () => {
expect(ExampleComponent).toBeTruthy();
});
});
export { ExampleComponent } from './ExampleComponent';
/* add css module styles here (optional) */
.test {
margin: 2em;
padding: 0.5em;
border: 2px solid #000;
font-size: 2em;
text-align: center;
}
+6
-6
{
"name": "@magusn/components",
"version": "0.2.0",
"version": "0.2.1",
"gitHead": "e949250e8467604cb71f28d0da995accb467a01d",
"description": "common components",

@@ -9,2 +10,5 @@ "author": "magus",

"main": "src/index.js",
"files": [
"src"
],
"engines": {

@@ -45,7 +49,3 @@ "node": ">=10"

"react-scripts": "^3.4.1"
},
"files": [
"dist"
],
"gitHead": "878461759590409d2ab4400d7990e6de2717addf"
}
}