3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

VSCode React拡張機能の snippets まとめ

Last updated at Posted at 2023-03-05

説明

ES7+ React/Redux/React-Native snippets
スクリーンショット 2023-03-05 14.24.49.png

VScode で React を利用する際 snippets を用いて開発スピードを向上させることが目的

補足情報

Name: ES7+ React/Redux/React-Native snippets
Id: dsznajder.es7-react-js-snippets
Description: Extensions for React, React-Native and Redux in JS/TS with ES7+ syntax. Customizable. Built-in integration with prettier.
Version: 4.4.3
Publisher: dsznajder
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets

snippets 一覧

アロー関数

rafc
import React from 'react'

export const aaaa = () => {
  return (
    <div>aaaa</div>
  )
}
rafce
import React from 'react'

const aaaa = () => {
  return (
    <div>aaaa</div>
  )
}

export default aaaa
rafcp
import React from 'react'
import PropTypes from 'prop-types'

const aaaa = props => {
  return (
    <div>aaaa</div>
  )
}

aaaa.propTypes = {}

export default aaaa

function 関数

  • rfc
  • rfcp
  • rfce

基本アロー関数推奨なので実行結果は割愛

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?