Skip to content

Pass in props as an object #227

Closed
Closed
@justin808

Description

@justin808

We're passing in an array here as "props"
https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/client%2Fapp%2Fbundles%2Fcomments%2Fstore%2FcommentsStore.js#L8

But props should be

{
comments: '<the comments array>'
}

This requires updating the jBuilder.

@jbhatab knows what to do on this one.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions