Skip to content

Instantly share code, notes, and snippets.

@KyleAMathews
Created July 24, 2014 17:49
Show Gist options
  • Save KyleAMathews/d8ac2ea09f1ca3f5274f to your computer and use it in GitHub Desktop.
Save KyleAMathews/d8ac2ea09f1ca3f5274f to your computer and use it in GitHub Desktop.
PicCard = require '../cards/pic'
#<{require "../cards/" + @props.params.card}
module.exports = React.createClass
displayName: 'Networking'
componentWillMount: ->
@setState Component: require "../cards/#{@props.params.card}"
render: ->
console.log @props.params
console.log @props.query.type
console.log @state.Component
console.log PicCard
return (
<div>
<{@state.Component}
type={@props.query.type}
fullScreen />
</div>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment