Pass a components state : Stuck at 5/6


Get no error messages, but something is wrong with the way the state is passed through the attribute "name". Anyone got any idea what could be causing this?

var React = require('react');
var ReactDOM = require('react-dom');
var Child = require('./Child');

var Parent = React.createClass({
  getInitialState: function() {
    return {name: 'Frarthur'};
  render: function() {
    return (
      <Child name={}/>


Are you rendering the Parent component?

Could it be as simple as the missing space character before /?


Was this ever resolved? I have the same issue.


don't forget to module.exports =Child in your child.js!


It works fine..Thanks alot


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.