Skip to content

(Not a mode yet) Collection of useful React.js functions and macros using the es6 standard

Notifications You must be signed in to change notification settings

jmfurlott/react-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

react-mode

(Not a emacs mode yet...)

Just a collection of useful emacs functions that makes developing in React and es6 a little easier. Please feel free to add whatever functions you think would be useful.

The goal is that this will grow into an up-to-date mode for emacs as React continues to grow and develop.

Also, feel free to criticize my elisp as I am still learning it.

Installation

In it's current state, the file should just be loaded and evaluated so that functions are able to be used. To do so, I simply just added the following to .emacs:

(load "/path/to/react.el")

Current functions

react-bp

Creates the boilerplate (bp) required when you create a new component class. Call it via (react-bp "HelloWorld"), and the following output would be:

import React from "react";

export default class HelloWorld extends React.Component {

	constructor(props) {
		super(props);
	}

	render() {
		return (
			<div className="HelloWorld"></div>
		);
	}
}

About

(Not a mode yet) Collection of useful React.js functions and macros using the es6 standard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published