JS JSX Snippets installs statistics
By Nai You Ran · VS Code Marketplace · Snippets
Extensions for React, Redux in JS with babel and ES7 syntax
JS JSX Snippets has 1,463,492 recorded installs on VS Code Marketplace, ranking #428 of 2,501 tracked listings.
Rating: 5.00 / 5 from 6 ratings
About JS JSX Snippets
JS JSX Snippets
React/Redux/Jest code snippets for JavaScript and TypeScript in VS Code.
Options
| Option | Description |
|---|---|
importReactOnTop | Controls if snippets add import React from 'react'; at the top of components. Set to false if you have React 17+ and use the JSX transform. |
semicolon | Controls if snippets add a semicolon at the end of the line. |
typing | Controls if React components include TypeScript Props typing. |
Supported languages (file extensions)
- JavaScript (.js)
- JavaScript React (.jsx)
- TypeScript (.ts)
- TypeScript React (.tsx)
Snippets
In the code examples below,
|marks where the cursor lands after expansion.
Import Package
| Trigger | Content |
|---|---|
imp | import name from 'module'; |
imd | import { } from 'module'; |
ipt | import PropTypes from 'prop-types'; |
imr | import React from 'react'; (useful in tests) |
Basic Methods
| Trigger | Content |
|---|---|
clg | console.log() |
React Components
| Trigger | Content |
|---|---|
rcc | Class component skeleton |
rccp | Class component skeleton with prop types after the class |
rfc | Function component skeleton |
rfcp | Function component with prop types skeleton |
est | Empty state object |
cdm | componentDidMount method |
scu | shouldComponentUpdate method |
cdu | componentDidUpdate method |
cwu | componentWillUnmount method |
gsb | getSnapshotBeforeUpdate method |
gds | static getDerivedStateFromProps method |
cdc | componentDidCatch method |
sst | this.setState with object as parameter |
ssf | this.setState with function as parameter |
props | this.props |
state | this.state |
bnd | Binds this to a method inside the constructor |
useState | useState block |
useEffect | useEffect block |
useContext | useContext block |
React Native Components
| Trigger | Content |
|---|---|
rncc | React Native class component skeleton |
rnfc | React Native function component skeleton |
Jest
| Trigger | Content |
|---|---|
describe | describe block |
test | test block |
it | it block |
PropTypes
| Trigger | Content |
|---|---|
pta | PropTypes.array |
ptar | PropTypes.array.isRequired |
pto | PropTypes.object |
ptor | PropTypes.object.isRequired |
ptb | PropTypes.bool |
ptbr | PropTypes.bool.isRequired |
ptf | PropTypes.func |
ptfr | PropTypes.func.isRequired |
ptn | PropTypes.number |
ptnr | PropTypes.number.isRequired |
pts | PropTypes.string |
ptsr | PropTypes.string.isRequired |
ptnd | PropTypes.node |
ptndr | PropTypes.node.isRequired |
ptel | PropTypes.element |
ptelr | PropTypes.element.isRequired |
pti | PropTypes.instanceOf(ClassName) |
ptir | PropTypes.instanceOf(ClassName).isRequired |
pte | PropTypes.oneOf([...]) |
pter | PropTypes.oneOf([...]).isRequired |
ptet | PropTypes.oneOfType([...]) |
ptetr | PropTypes.oneOfType([...]).isRequired |
ptao | PropTypes.arrayOf(PropTypes.number) |
ptaor | PropTypes.arrayOf(PropTypes.number).isRequired |
ptoo | PropTypes.objectOf(PropTypes.number) |
ptoor | PropTypes.objectOf(PropTypes.number).isRequired |
ptsh | PropTypes.shape({...}) |
ptshr | PropTypes.shape({...}).isRequired |
imp — Import Package
import name from 'module';
imd — Import Destructured
import { | } from 'module';
imr — Import React
import React from 'react';
ipt — Import PropTypes
import PropTypes from 'prop-types';
clg — Console Log
console.log(|);
rcc — Class Component
import React, { Component } from 'react';
class App extends Component {
render() {
return (
<div>
|
</div>
);
}
}
export default App;
rccp — Class Component with PropTypes
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class App extends Component {
render() {
return (
<div>
|
</div>
);
}
}
App.propTypes = {
};
export default App;
rfc — Function Component
import React from 'react';
const App = () => {
return (
<div>
|
</div>
);
}
export default App;
rfcp — Function Component with PropTypes
import React from 'react';
import PropTypes from 'prop-types';
const App = () => {
return (
<div>
|
</div>
);
};
App.propTypes = {
};
export default App;
est — Empty State
this.state = {
|
};
cdm — componentDidMount
componentDidMount() {
|
}
scu — shouldComponentUpdate
shouldComponentUpdate(nextProps, nextState) {
|
}
cdu — componentDidUpdate
componentDidUpdate(prevProps, prevState) {
|
}
cwu — componentWillUnmount
componentWillUnmount() {
|
}
gsb — getSnapshotBeforeUpdate
getSnapshotBeforeUpdate(prevProps, prevState) {
|
}
gds — getDerivedStateFromProps
static getDerivedStateFromProps(nextProps, prevState) {
|
}
cdc — componentDidCatch
componentDidCatch(error, info) {
|
}
sst — setState with Object
this.setState(|)
ssf — setState with Function
this.setState((state, props) => { return { | }});
props — this.props
this.props.|
state — this.state
this.state.|
bnd — Bind Method in Constructor
this.| = this.|.bind(this);
useState
const [state, setState] = useState(|);
useEffect
useEffect(() => {
|
return () => {
};
}, []);
useContext…
Description from the VS Code Marketplace listing.
- javascript
- javascriptreact
- snippet
- typescript
- typescriptreact
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 (5)Similar VS Code Marketplace Snippets plugins
All 20 JS JSX Snippets alternativesData 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=skyran.js-jsx-snippets. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.