Skip to content

ReactJS and Coffee #188

@olegsobchuk

Description

@olegsobchuk

Hi!
I just started learn ReactJS and from the very start I have problem!
As I can see you say that React working with coffee.
my file hello.js.jsx.coffee

HelloWorld = React.createClass
  render: ->
    `<div>
      <h1>Hello World!</h1>
    </div>`

and in my view:
= react_component('HelloWorld', {}, :span)
But I get error:
ReferenceError: HelloWorld is not defined

my source code

https://github.com/olegsobchuk/example_app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions