Skip to content

Can react play nicely with CoffeeScript? I think it can.

License

Notifications You must be signed in to change notification settings

serendipious/react-coffee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an attempt to make Facebook's react library more usable from CoffeeScript without escaping into JSX or painfully contorting syntax. Here's what I have so far.

class Welcome extends Component
  render: ->
    @div ->
      @text "Hello"
      @span @props.name

component = new Welcome(name: "World")
element = component.buildElement()

About

Can react play nicely with CoffeeScript? I think it can.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published