Skip to content

How can I use a ReactComponent as a Layout ? #901

@qxchen6

Description

@qxchen6

if i write yield like this in application.html.slim , the other components will render out of the layout component

doctype html
html
  head
    title
      | Quiver
    = javascript_pack_tag 'application'
    = csrf_meta_tags
body
  = react_component('ApplicationLayout',{logo: asset_path('logo'))
  = yield 

Here is the description with a picture .

image

so ,is anybody can teach me how to do that? thanks .. :(

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