1 // Shortcut to write react code
2Install extension(vscode)-- Reactjs code snippets (charalampos karypidis)
3-> means Tab
4rcc-> == class component skeleton
5rsc-> == stateless component skeleton
6rsf-> == stateless named function skeleton
7
8To see more, visit-- https://marketplace.visualstudio.com/items?itemName=xabikos.ReactSnippets
1import React from 'react'
2
3const $1 = () => {
4 return <div>$0</div>
5}
6
7export default $1
8
1import React, { PureComponent } from 'react'
2
3export default class FileName extends PureComponent {
4 render() {
5 return <div>$2</div>
6 }
7}
8