Created
July 24, 2014 17:49
-
-
Save KyleAMathews/d8ac2ea09f1ca3f5274f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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