Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>OB React SnippetsNew to Visual Studio Code? Get it now.
OB React Snippets

OB React Snippets

rzarroca

|
27 installs
| (0) | Free
A common set of snippets for working on OB's react projects.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OB React Snippets

A common set of snippets for working on OB's react projects.

This is an open source project. Please, feel free to fork it or make your own PR on the main project.

Snippets

Snippet Renders
isc Import styled from 'styled-components'
sc, esc Exports a new styled component
scti, escti Exports a new styled component with testId
scp Use props inside a styled-component
theme, sct Use { theme } inside a styled-component
ust useState() hook
uef useEffect() hook
urf, uref useRef() hook
rfc Create a functional component
ept, eprt Export a type with PropsType ending
ert Export a type with ReturnType ending
ers Export PropType & ReturnType types
slt Create SelectedType from copy text
hds, ghd Create a new group of handlers
adh Add a new handler
hdr Create handler function

Extension Settings

TBD

Known Issues

No issues known. Please, you can report on the project's github repository.

Release Notes

Check CHANGELOG for the list of changes and upcoming updates.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft