jedireza / hapi-react-views

:package: A hapi view engine for React components
MIT License
231 stars 33 forks source link

Create an example #8

Closed tcoopman closed 9 years ago

tcoopman commented 9 years ago

Is it possible to create an example. If possible a somewhat complex example with multiple components and working client side injecting of React (with renderToString)?

jedireza commented 9 years ago

Sorry for the delay. Yes we should add examples.

ro-ka commented 9 years ago

An example would be really helpful!

I couldn't find out how to render submodules. Got my views/index.jsx working by looking at the tests. But now I'm trying to call render a module <Head /> which lies in view/head.jsx. The error is this:

ReferenceError: Head is not defined: Head is not defined

How to specify it?

ro-ka commented 9 years ago

Ha, found it! A var Head = require('./head.jsx'); was missing! :)

SOSANA commented 9 years ago

1+ anyone working on some examples?

jedireza commented 9 years ago

Apologies for letting this thread go without attention. You can see hapi-react-views in action in Aqua. But we do need to create some examples for this repo.

jedireza commented 9 years ago

:tada: Examples have been added to the README :confetti_ball: https://github.com/jedireza/hapi-react-views#examples