VS Code React快速代码插件ES7+ React/Redux/React-Native snippets

ES7+ React/Redux/React-Native snippets - Visual Studio Marketplace Extension for Visual Studio Code - Extensions for React, React-Native and Redux in JS/TS with ES7+ syntax. Customizable. Built-in integration with prettier.icon-default.png?t=M0H8https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets

React-Native/React/Redux snippets for es6/es7 version Standard - Visual Studio Marketplace Extension for Visual Studio Code - Code snippets for React-Native/React/Redux es6/es7 with the standard styleicon-default.png?t=M0H8https://marketplace.visualstudio.com/items?itemName=EQuimper.react-native-react-redux-snippets-for-es6-es7-version-standard

 imrc:引入react组件

import React, { Component } from 'react'

imrd:引入reactdom

import ReactDOM from 'react-dom'

imp:引入module

import moduleName from 'module'

 redux:入引redux

import { connect } from 'react-redux'

nfn:箭头函数

const functionName = (params) => { }

anfn:匿名函数

(first) => {
   second;
 };

  rcc:类组件

import React, { Component } from 'react';
  
  export default class index extends Component {
    render() {
      return <div></div>;
    }
  }

rfc:无状态组件

import React from 'react';
  
  export default function index() {
    return <div></div>;
  }

 clg:打印

console.log(first);

fof:for循环

for(let itemName of objectName { }

exp:导出

export default moduleName

prom:Promise

return new Promise((resolve, reject) => { }

cp:Props

const { } = this.props

cs:state

const { } = this.state

 dob:解构对象

const { second } = first;

 dar:解构数组

const [second] = first;

ren:煊染

render() { return( ) }

sst:设置

this.setState({ })

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

云飞扬扬

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值