Skip to content

A CoffeeScript precompiler supporting JSX syntax as well as await and defer statements.

Notifications You must be signed in to change notification settings

dan-velez/iced-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

npm i -g iced-react

Usage

Evaluate a file

$ iced-react [filename]

Iced React

Iced React is an extension to CoffeeScript allowing for JSX syntax and IcedCoffeeScript await and defer statements. It makes use of the iced-coffee-script and coffee-react-transform npm packages.

# React/Redux example container component

React = require 'react' # React must be in the namespace
{ connect } = require 'react-redux'
Form = require './components/form.iced'
actions = require './actions/index.iced'

App = ({ props })->
	{ dispatch } = props
	<div>
    	{ props.children }
        <Form actions={ actions } dispatch={ dispatch } />
    </div>
    
module.exports = connect((state)-> state)(App)

About

A CoffeeScript precompiler supporting JSX syntax as well as await and defer statements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published