This Zed extension provides converted snippets from the popular "ES7+ React/Redux/React-Native snippets" VSCode extension.
You can download the extension from the Zed extension store. Just search for react-snippets-es7 and click install.
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!
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.
MIT