Skip to content

Example app not working as expected #6

Description

@darkwiz

I really like your project but i do not understand how to make it work properly. I'm trying your basic tutorial https://github.com/namusyaka/react-sinatra-sample But i think something is wrong.

Steps to Reproduce the Problem

  1. Hitting http://localhost:4567/ print out this is an example for react-siantra as expected
  2. Hitting http://localhost:4567/react-component print out "{"name":"namusyaka"}"}"> (adding a parameter to the request namusyaka changes as expected) the page body content is the following:
    <div data="{:react_class=>" commentbox",="" :react_props="">"{"name":"namusyaka"}"}">
  3. Hitting http://localhost:4567/react-component-with-server print out the following error:
    [2018-08-13 14:21:27] INFO WEBrick::HTTPServer#start: pid=24271 port=4567
    2018-08-13 14:21:32 - NoMethodError - undefined method `concat' for #React::Sinatra::Component:0x0000000001530ce0 Did you mean? concern:

Specifications

  • Version: Ruby ruby 2.3.7p456, Sinatra 1.4.7, react-sinatra 0.1.1, Node v6.11.3
  • Platform: Linux/ Ubuntu 14.04.5

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions