Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

localstorage-json

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localstorage-json

react minimal components

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-53.33%
Maintainers
1
Weekly downloads
 
Created
Source

reactlite

react minimal components

一个基于 React 的不包含过多特殊样式的简单组件

安装

npm install reactlite -S

使用方法

import {Element, BundleLoader} from 'reactlite';

Element

  • visible 为 false将返回 null
<Element visible={false} component="span">children</Element>

等价于

null
  • component 指定内部组件类型(默认为 div ),
<Element component="span">children</Element>

等价于

<span>children</span>
  • css 属性将转化为 style
<Element color="red" fontSize="20px">children</Element>

等价于

<div style={{color:'red', fontSize:'20px'}}>children</div>

BundleLoader

用于 bundle-loader (webpack 插件)懒加载.

import LazyComponent from 'bundle?lazy!./LazyComponent.js';
// LazyComponent 将会延迟加载
<BundleLoader component={LazyComponent}/>

Row & Col

  • Row
属性描述可选值默认值
type布局模式null, flextop
align仅适用于type:flex,纵向对齐top middle bottomtop
justify仅适用于type:flex,横向对齐start end center space-around space-betweenstart
gutter间距0
numCol将 Row 分成 numCol 列24
<Row gutter={20} numCol="100" type="flex" justify="center">
  <Col span="11">11%</Col>
  <Col span="49">49%</Col>
  <Col span="40">40%</Col>
</Row>
  • Col
属性描述默认值
span宽度占比0
offset横向偏移占比(计算宽度)0
push从前向后排(相当于span)0
pull从后向前排(相当于倒序的span)0

FAQs

Package last updated on 17 Jul 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc