Skip to content

Zed extension with converted React/Redux/React-Native snippets from the popular 'ES7+ React/Redux/React-Native snippets' VSCode extension.

License

Notifications You must be signed in to change notification settings

shonebinu/zed-react-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zed React Snippets

This Zed extension provides converted snippets from the popular "ES7+ React/Redux/React-Native snippets" VSCode extension.

Available Snippets

Installation

You can download the extension from the Zed extension store. Just search for react-snippets-es7 and click install.

Usage

Snippets currently work in .tsx files. For example, typing rfc expands into:

import React from 'react'

export default function ComponentName() {
  return (
    <div>first</div>
  )
}

Support for .ts, .jsx, and .js files is planned. I haven't figured out a way to make snippets work on multiple file type yet. — contributions are welcome!

Contributing

Pull requests are welcome! If you'd like to help extend file support or add new snippets, please open an issue or submit a PR.

This repo includes a convert.js script that fetches the snippets from the original VSCode extension's Github repo and generates snippets/tsx.json for Zed.

License

MIT

About

Zed extension with converted React/Redux/React-Native snippets from the popular 'ES7+ React/Redux/React-Native snippets' VSCode extension.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published