An open API service indexing awesome lists of open source software.

https://github.com/abolkog/react-redux-simple-snippets

My React, Redux Snippets for Visual Studio Code
https://github.com/abolkog/react-redux-simple-snippets

react react-native redux snippets vscode-snippets

Last synced: about 1 year ago
JSON representation

My React, Redux Snippets for Visual Studio Code

Awesome Lists containing this project

README

          

# React Redux Simple Snippets

Collection of the essentioanl Snippets for `React`, `React Native` and `Redux`.

These snippets are selected based on my own use. Not everything is included, it is meant to be a minimal collection of the essentials only.

## Works With

- JavaScript (.js)
- JavaScript React (.jsx)
- TypeScript React (.tsx)

# Snippets List

## React

| Trigger | Result |
| ------- | ----------------------------------------------- |
| `rfc` | React functional component skeleton |
| `rusth` | useState hook |
| `rcc` | React class component skeleton |
| `rccc` | React class component with constructor skeleton |
| `rcr` | React class component with redux connect |
| `con` | Creates class constructor |
| `ss` | setState shortcut |



## React (Typescript)

| Trigger | Result |
| ------- | ------------------------------------------ |
| `rfct` | React stateless component skeleton |
| `rnfct` | React Native functional component skeleton |
| `rusth` | useState hook |



## React Native

| Trigger | Result |
| ------- | ------------------------------------------ |
| `rncc` | React Native class component skeleton |
| `rnfc` | React Native functional component skeleton |
| `rncr` | React Native component with redux connect |
| `imrn` | Import React Native Element |
| `rnss` | React Native StyleSheet |



## Redux

| Trigger | Result |
| --------- | ----------------------- |
| `reducer` | Redux Reducer skeleton |
| `action` | Action Creator skeleton |