{"id":19391251,"url":"https://github.com/equimper/vsc-react-native-react-redux-snippets","last_synced_at":"2025-10-30T00:34:22.048Z","repository":{"id":84189439,"uuid":"82884777","full_name":"EQuimper/VSC-React-Native-React-Redux-Snippets","owner":"EQuimper","description":"Snippets for React and React-Native with a bit of Redux for es6/es7 user.","archived":false,"fork":false,"pushed_at":"2020-10-09T12:41:41.000Z","size":150,"stargazers_count":55,"open_issues_count":7,"forks_count":31,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-26T20:58:06.767Z","etag":null,"topics":["es6","es7","javascript","package","react","react-native","redux","snippets","visual-studio-code"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=EQuimper.react-native-react-redux","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EQuimper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-02-23T04:38:38.000Z","updated_at":"2024-11-03T22:44:05.000Z","dependencies_parsed_at":"2023-05-23T21:45:16.040Z","dependency_job_id":null,"html_url":"https://github.com/EQuimper/VSC-React-Native-React-Redux-Snippets","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/EQuimper/VSC-React-Native-React-Redux-Snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EQuimper%2FVSC-React-Native-React-Redux-Snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EQuimper%2FVSC-React-Native-React-Redux-Snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EQuimper%2FVSC-React-Native-React-Redux-Snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EQuimper%2FVSC-React-Native-React-Redux-Snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EQuimper","download_url":"https://codeload.github.com/EQuimper/VSC-React-Native-React-Redux-Snippets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EQuimper%2FVSC-React-Native-React-Redux-Snippets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268286148,"owners_count":24225882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["es6","es7","javascript","package","react","react-native","redux","snippets","visual-studio-code"],"created_at":"2024-11-10T10:25:53.663Z","updated_at":"2025-10-30T00:34:21.977Z","avatar_url":"https://github.com/EQuimper.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/badge/Supported%20by-VSCode%20Power%20User%20Course%20%E2%86%92-gray.svg?colorA=655BE1\u0026colorB=4F44D6\u0026style=for-the-badge)](https://a.paddle.com/v2/click/16413/111518?link=1227)\n[![Version](https://vsmarketplacebadge.apphb.com/version-short/EQuimper.react-native-react-redux.svg)](https://marketplace.visualstudio.com/items?itemName=EQuimper.react-native-react-redux)\n[![Install](https://vsmarketplacebadge.apphb.com/installs-short/EQuimper.react-native-react-redux.svg)](https://marketplace.visualstudio.com/items?itemName=EQuimper.react-native-react-redux)\n[![Ratings](https://vsmarketplacebadge.apphb.com/rating-short/EQuimper.react-native-react-redux.svg)](https://marketplace.visualstudio.com/items?itemName=EQuimper.react-native-react-redux)\n\n# No Semicolon ?\n\nFor the version without semi-colon look this one https://marketplace.visualstudio.com/items?itemName=EQuimper.react-native-react-redux-snippets-for-es6-es7-version-standard\n\n## Usage\n\nAfter install this snippets add this inside your settings\n\n`\"editor.snippetSuggestions\": \"top\",`\n\n## Snippets List\n\n| Snippets | Content                              |\n| -------: | ------------------------------------ |\n| imr      | Import React                         |\n| imro     | Import React as Object               |\n| imrc     | Import React Component               |\n| imrpc    | Import React PureComponent           |\n| imrn     | Import React-Native Element          |\n| ims      | Import Styled-Components             |\n| imsn     | Import Styled-Components Native      |\n| impt     | Import PropTypes                     |\n| rct      | Redux constant                       |\n| crr      | Connect Redux                        |\n| sl       | Stateless Component                  |\n| slr      | Stateless Component Return           |\n| slc      | Stateless Component Function         |\n| ccs      | Component Class                      |\n| cccs     | Component Class With Constructor     |\n| ccsf     | Component Class FlowType             |\n| pcs      | PureComponent Class                  |\n| pccs     | PureComponent Class With Constructor |\n| pcsf     | PureComponent FlowType               |\n| ccsr     | Component Class With Redux           |\n| edccs    | Export default Component Class       |\n| rrd      | Redux Reducer                        |\n| rpf      | Redux Pure Function                  |\n| rpc      | Redux Pure Function Const            |\n| cwm      | ComponentWillMount                   |\n| cdm      | ComponentDidMount                    |\n| cdu      | ComponentDidUpdate                   |\n| scu      | ShouldComponentUpdate                |\n| cwu      | ComponentWillUpdate                  |\n| cwum     | ComponentWillUnmount                 |\n| cwrp     | ComponentWillReceiveProps            |\n| cdc      | ComponentDidCatch                    |\n| cct      | Create Context                       |\n| gds      | getDerivedStateFromProps             |\n| rnss     | StyleSheet Style                     |\n| ess      | EStyleSheet Style                    |\n| ed       | Export default                       |\n| edl      | EslintDisableLine                    |\n| ednl     | EslintDisableNextLine                |\n| styc     | Styled Component                     |\n| estyc    | Export Styled Component              |\n| edstyc   | Export default Styled Component      |\n| cmmb     | Comment Big Block                    |\n| log      | Console Log                          |\n| cl       | Standard console.log                 |\n| tt       | Test                                 |\n| tdesc    | Test Describe                        |\n| tit      | Test It                              |\n| ffm      | FlowFixMe                            |\n| rnstory  | React-Native Story                   |\n| rstory   | React Story                          |\n| rsf      | React Stateless Function             |\n\n---\n\n# imr [Import React]\n\n```js\nimport React from 'react';\n```\n\n---\n\n# imro [Import React as Object]\n\n```js\nimport * as React from 'react';\n```\n\n---\n\n## imrc [Import React Component]\n\n```js\nimport React, { Component } from 'react';\n```\n\n---\n\n## imrpc [Import React PureComponent]\n\n```js\nimport React, { PureComponent } from 'react';\n```\n\n---\n\n## imrn [Import React-Native Element]\n\n```js\nimport { $1 } from 'react-native';\n```\n\n---\n\n## ims [Import Styled-Components]\n\n```js\nimport styled from 'styled-components';\n```\n\n---\n\n## imsn [Import Styled-Components Native]\n\n```js\nimport styled from 'styled-components/native';\n```\n\n---\n\n## impt [Import PropTypes]\n\n```js\nimport PropTypes from 'prop-types';\n```\n\n---\n\n## rct [Redux Constant]\n\n```js\nexport const $1 = '$1';\n```\n\n---\n\n## crr [Connect Redux]\n\n```js\nimport { connect } from 'react-redux';\n```\n\n---\n\n## sl [Stateless Component]\n\n```js\nconst $1 = () =\u003e (\n  $2\n);\n\nexport default $1;\n```\n\n---\n\n## slr [Stateless Component Return]\n\n```js\nconst $1 = () =\u003e {\n  return (\n    $2\n  );\n}\n\nexport default $1;\n```\n\n---\n\n## slc [Stateless Component Function]\n\n```js\nfunction $1($2) {\n  $3\n}\n\nexport default $1;\n```\n\n---\n\n## ccs [Component Class]\n\n```js\nclass $1 extends Component {\n  state = { $2 }\n  render() {\n    return (\n      $3\n    );\n  }\n}\n\nexport default $1;\n```\n\n---\n\n## cccs [Component Class With Constructor]\n\n```js\nclass $1 extends Component {\n  constructor(props) {\n    super(props);\n    this.state = { $2 };\n  }\n  render() {\n    return (\n      $3\n    );\n  }\n}\n\nexport default $1;\n```\n\n---\n\n## ccsf [Component Class FlowType]\n\n```js\ntype P = {\n  $1\n};\n\ntype S = {\n  $2\n};\n\nclass $3 extends Component\u003cP, S\u003e {\n  constructor(props) {\n    super(props);\n    this.state = { $4 };\n  }\n  render() {\n    return (\n      $5\n    );\n  }\n}\n\nexport default $3;\n```\n\n---\n\n## pcs [PureComponent Class]\n\n```js\nclass $1 extends PureComponent {\n  state = { $2 }\n  render() {\n    return (\n      $3\n    );\n  }\n}\n\nexport default $1;\n```\n\n---\n\n---\n\n## pccs [PureComponent Class With Constructor]\n\n```js\nclass $1 extends PureComponent {\n  constructor(props) {\n    super(props);\n    this.state = { $2 };\n  }\n  render() {\n    return (\n      $3\n    );\n  }\n}\n\nexport default $1;\n```\n\n---\n\n## pcsf [PureComponent Class FlowType]\n\n```js\ntype P = {\n  $1\n};\n\ntype S = {\n  $2\n};\n\nclass $3 extends PureComponent\u003cP, S\u003e {\n  constructor(props) {\n    super(props);\n    this.state = { $4 };\n  }\n  render() {\n    return (\n      $5\n    );\n  }\n}\n\nexport default $3;\n```\n\n---\n\n## ccsr [Component Class With Redux]\n\n```js\nclass $1 extends Component {\n  state = { $2 }\n  render() {\n    return (\n      $3\n    );\n  }\n}\n\nexport default connect($4, $5)($1);\n```\n\n---\n\n## edccs [Export default Component Class]\n\n```js\nexport default class $1 extends Component {\n  state = { $2 }\n  render() {\n    return (\n      $3\n    );\n  }\n}\n```\n\n---\n\n## rrd [Redux Reducer]\n\n```js\nexport default (state = $1, action) =\u003e {\n  switch (action.type) {\n    case $2:\n      $3\n    default:\n      return state;\n  }\n};\n```\n\n---\n\n## rpf [Redux pure function]\n\n```js\nexport const $1 = '$1';\n\nexport function $2($3) {\n  return {\n    type: $1,\n    $3\n  }\n}\n```\n\n---\n\n## rpc [Redux pure function const]\n\n```js\nexport const $1 = '$1';\n\nexport const $2 = $3 =\u003e ({\n  type: $1,\n  $3\n});\n```\n\n---\n\n## cwm [ComponentWillMount]\n\n```js\ncomponentWillMount() {\n  $1\n}\n```\n\n\n## cwu [ComponentWillUpdate]\n\n```js\ncomponentWillUpdate() {\n  $1\n}\n```\n\n---\n\n## cdu [ComponentDidUpdate]\n\n```js\ncomponentDidUpdate(prevProps, prevState) {\n  $1\n}\n```\n\n---\n\n## scu [ShouldComponentUpdate]\n\n```js\nshouldComponentUpdate(nextProps, nextState, nextContext) {\n  $1\n}\n```\n\n---\n\n## cdm [ComponentDidMount]\n\n```js\ncomponentDidMount() {\n  $1\n}\n```\n\n---\n\n# cwum [ComponentWillUnmount]\n\n```js\ncomponentWillUnmount() {\n  $1\n}\n```\n\n---\n\n# cwrp [ComponentWillReceiveProps]\n\n```js\ncomponentWillReceiveProps(nextProps) {\n  $1\n}\n```\n\n---\n\n# cdc [ComponentDidCatch]\n\n```js\ncomponentDidCatch(error, info) {\n  $1\n}\n```\n\n---\n\n# cct [Create Context]\n\n```js\n\nconst $1Context = createContext($2);\n\nclass $1Provider extends Component {\n  state = {\n    $3\n  }\n\n  render() {\n    return (\n      \u003c$1Context.Provider value={{ state: { $3 }, actions: {} }}\u003e\n        {this.props.children}\n      \u003c/$1Context.Provider\u003e\n    );\n  }\n}\n\nexport default $1Provider;\n```\n\n---\n\n# gds [getDerivedStateFromProps]\n\n```js\nstatic getDerivedStateFromProps(nextProps, prevState) {\n  $1\n}\n```\n\n---\n\n# rnss [StyleSheet Style]\n\n```js\nconst styles = StyleSheet.create({\n  $1\n});\n```\n\n---\n\n# ess [EStyleSheet]\n\n```js\nimport EStyleSheet from 'react-native-extended-stylesheet';\n\nconst styles = EStyleSheet.create({\n  $1\n});\n\nexport default styles;\n```\n\n---\n\n## ed [Export default]\n\n```js\nexport default $1;\n```\n\n---\n\n## edl [Eslint Disable Line]\n\n```js\n// eslint-disable-line\n```\n\n---\n\n## ednl [Eslint Disable Next Line]\n\n```js\n// eslint-disable-next-line\n```\n\n---\n\n## styc [Styled Component]\n\n```js\nconst $1 = styled.$2`\n  $3\n`\n```\n\n---\n\n## estyc [Export Styled Component]\n\n```js\nexport const $1 = styled.$2`\n  $3\n`\n```\n\n## edstyc [Export default Styled Component]\n\n```js\nexport default styled.$1`\n  $2\n`\n```\n\n## cmmb [Comment Big Block]\n\n```js\n/**\n|--------------------------------------------------\n| $1\n|--------------------------------------------------\n*/\n```\n\n---\n\n## log [Console Log]\n\n```js\nconsole.log('====================================');\nconsole.log($1);\nconsole.log('====================================');\n```\n\n---\n\n## cl [Standard console.log]\n\n```js\nconsole.log($1);\n```\n\n---\n\n## tt [Test]\n\n```js\ntest('$1', () =\u003e {\n  $2\n});\n```\n\n---\n\n## tdesc [Test Describe]\n\n```js\ndescribe('$1', () =\u003e {\n  $2\n});\n```\n\n---\n\n## tit [Test It]\n\n```js\nit('should $1', $2($3) =\u003e {\n  $4\n});\n```\n\n---\n\n## ffm [FlowFixMe]\n\n```js\n// $FlowFixMe\n```\n\n---\n\n## rnstory [React-Native Story]\n\n```js\nimport React from 'react';\nimport { storiesOf } from '@storybook/react-native';\n\nstoriesOf('$1', module)\n  .add('default', () =\u003e $2);\n```\n\n---\n\n## rstory [React Story]\n\n```js\nimport React from 'react';\nimport { storiesOf } from '@storybook/react';\n\nstoriesOf('$1', module)\n  .add('default', () =\u003e $2);\n```\n\n---\n\n\n## rue [React useEffect]\n\n```js\nReact.useEffect(() =\u003e {\n  $1\n}, []);\n```\n\n---\n\n## rsf [React Stateless Function]\n\n```js\nimport React from \"react\";\n\nfunction $1(props) {\n  return (\n    \u003cdiv\u003e\n\n    \u003c/div\u003e\n  );\n}\n\nexport default $1;\n```\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequimper%2Fvsc-react-native-react-redux-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fequimper%2Fvsc-react-native-react-redux-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequimper%2Fvsc-react-native-react-redux-snippets/lists"}