React snippets installs statistics
By runningcoder (2 listings) · VS Code Marketplace · Snippets
A set of snippets for React
React snippets has 143,003 recorded installs on VS Code Marketplace, an increase of 0.4% over the past 30 days, ranking #1924 of 2,515 tracked listings.
Rating: 5.00 / 5 from 2 ratings
About React snippets
📝 VS Code React snippets
This extension provides you React/Redux snippets for VS Code
📚 Supported languages (file extensions)
- JavaScript (.js)
- JavaScript React (.jsx)
- TypeScript (.ts)
- TypeScript React (.tsx)
📖 Snippets
Below is a list of all available snippets and the triggers of each one. The ⇥ means the TAB key.
React Component
Lifecycle
<table> <thead> <tr> <th>trigger
</th> <th>snippet(JS)
</th> <th>snippet(TS)
</th> </tr> </thead> <tbody> <tr> <td><code>rcns⇥</code></td> <td>constructor(props) {
super(props)
this.state = {
}
}
</td>
<td>
constructor(props: Props) {
super(props)
this.state = {
}
}
</td>
</tr>
<tr>
<td><code>cdm⇥</code></td>
<td>
componentDidMount() {
}
</td>
<td>
componentDidMount(): void {
}
</td>
</tr>
<tr>
<td><code>cdu⇥</code></td>
<td>
componentDidUpdate(prevProps, prevState, snapshot) {
}
</td>
<td>
componentDidUpdate(prevProps: Props, prevState: State, snapshot: any): void {
}
</td>
</tr>
<tr>
<td><code>cdc⇥</code></td>
<td>
componentDidCatch(error, info) {
}
</td>
<td>
componentDidCatch(error: Error, info: ErrorInfo): void {
}
</td>
</tr>
<tr>
<td><code>cwu⇥</code></td>
<td>
componentWillUnmount() {
}
</td>
<td>
componentWillUnmount(): void {
}
</td>
</tr>
<tr>
<td><code>scu⇥</code></td>
<td>
shouldComponentUpdate(nextProps, nextState) {
}
</td>
<td>
shouldComponentUpdate(nextProps: Props, nextState: State): boolean {
}
</td>
</tr>
<tr>
<td><code>gdsfp⇥</code></td>
<td>
static getDerivedStateFromProps(nextProps, prevState){
}
</td>
<td>
static getDerivedStateFromProps(nextProps: Readonly<Props>, prevState: State): Partial<State> | null {
}
</td>
</tr>
<tr>
<td><code>gdsfe⇥</code></td>
<td>
static getDerivedStateFromError(error){
}
</td>
<td>
static getDerivedStateFromError(error: any): Partial<State> | null {
}
</td>
</tr>
<tr>
<td><code>gsbu⇥</code></td>
<td>
getSnapshotBeforeUpdate(prevProps, prevState){
}
</td>
<td>
getSnapshotBeforeUpdate(prevProps: Readonly<Props>, prevState: Readonly<State>): SnapShot | null {
}
</td>
</tr>
<tr>
<td><code>ren⇥</code></td>
<td>
render(){
}
</td>
<td>
render(): React.ReactNode {
}
</td>
</tr>
</tbody>
</table>
Class Properties
<table> <thead> <tr> <th>trigger
</th> <th>snippet(JS)
</th> <th>snippet(TS)
</th> </tr> </thead> <tbody> <tr> <td><code>cdp⇥</code></td> <td>Component.defaultProps = {
}
</td>
<td>
Component.defaultProps = {
}
</td>
</tr>
</tbody>
</table>
Instance Properties
<table> <thead> <tr> <th>trigger
</th> <th>snippet(JS)
</th> <th>snippet(TS)
</th> </tr> </thead> <tbody> <tr> <td><code>thp⇥</code></td> <td>this.props.
</td>
<td>
this.props.
</td>
</tr>
<tr>
<td><code>ths⇥</code></td>
<td>
this.state.
</td>
<td>
this.state.
</td>
</tr>
</tbody>
</table>
Refs
<table> <thead> <tr> <th>trigger
</th> <th>snippet(JS)
</th> <th>snippet(TS)
</th> </tr> </thead> <tbody> <tr> <td><code>cref⇥</code></td> <td>this.nameRef = React.createRef()
</td>
<td>
this.nameRef = React.createRef<Type>()
</td>
</tr>
<tr>
<td><code>fcref⇥</code></td>
<td>
const nameRef = React.createRef()
</td>
<td>
const nameRef = React.createRef<Type>()
</td>
</tr>
</tbody>
</table>
Context
<table> <thead> <tr> <th>trigger
</th> <th>snippet(JS)
</th> <th>snippet(TS)
</th> </tr> </thead> <tbody> <tr> <td><code>cct⇥</code></td> <td>const contextName = React.createContext(defaultValue)
</td>
<td>
const contextName = React.createContext<Type>(defaultValue)
</td>
</tr>
<tr>
<td><code>ctp⇥</code></td>
<td>
<Context.Provider value="value">
</Context.Provider>
</td>
<td>
<Context.Provider value="value">
</Context.Provider>
</td>
</tr>
<tr>
<td><code>ctc⇥</code></td>
<td>
<Context.Consumer>
{value => ()}
</Context.Consumer>
</td>
<td>
<Context.Consumer>
{value => ()}
</Context.Consumer>
</td>
</tr>
</tbody>
</table>
Others
<table> <thead> <tr> <th>trigger
</th> <th>snippet(JS)
</th> <th>snippet(TS)
</th> </tr> </thead> <tbody> <tr> <td><code>ss⇥</code></td> <td>this.setState({})
</td>
<td>
this.setState({})
</td>
</tr>
<tr>
<td><code>ssu⇥</code></td>
<td>
this.setState((state, props) => {
return {stateChange}
})
</td>
<td>
this.setState((state, props) => {
return {stateChange}
})
</td>
</tr>
</tbody>
</table>
Skeleton
rcc⇥
JS
import React, { |PureComponent,Component| } from 'react'
class FileName extends |PureComponent,Component| {
constructor(props) {
super(props)
this.state = {
}
}
render() {
return (
)
}
}
export default FileName
TS
import React, { |PureComponent,Component|, ReactNode } from 'react'
interface Props {}
interface State {}…
Description from the VS Code Marketplace listing.
- javascript
- react
- redux
- snippet
- snippets
- typescript
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Snippets plugins
All 20 React snippets alternativesReact snippets on other marketplaces
Data source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=runningcoder.react-snippets. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.