ES7+ React/Redux/React-Native snippets
Converted React/Redux/React-Native snippets from the popular 'ES7+ React/Redux/React-Native snippets' VSCode extension.
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for ES7+ React/Redux/React-Native snippets. The extension's id is react-snippets-es7.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Zed React Snippets
This Zed extension provides converted snippets from the popular "ES7+ React/Redux/React-Native snippets" VSCode extension.
Installation
- Clone this repository.
- Open the Extensions tab in Zed (
Ctrl + Shift + X). - Click Install Dev Extension and select the cloned repo.
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