import 'dart:html';

import 'package:react/react.dart' as react;
import 'package:react/react_dom.dart' as react_dom;
import 'package:react/react_client.dart';

class _Component extends react.Component {
  render() {
    return props['returnValue'];
  }
}

var component = react.registerComponent(() => new _Component());

void main() {
  setClientConfiguration();

  var content = react.div({}, [
    react.p({}, 'Testing a return value of "null"...'),
    component({'returnValue': null, 'key': 0}),
    react.p({}, 'Testing a return value of "false"...'),
    component({'returnValue': false, 'key': 1}),
  ]);
  react_dom.render(content, querySelector('#content'));
}

import 'dart:html';

import 'package:react/react.dart' as react;
import 'package:react/react_dom.dart' as react_dom;
import 'package:react/react_client.dart';

class _Component extends react.Component {
  render() {
    if (props['hardCodedNullReturn'] == true) {
      return null;
    }

    return props['returnValue'];
  }
}

var component = react.registerComponent(() => new _Component());

void main() {
  setClientConfiguration();

  var content = react.div({}, [
    react.p({}, 'Testing a dynamic return value of "null"...'),
    component({'returnValue': null, 'key': 0}),
    react.p({}, 'Testing a hard-coded return value of "null"...'),
    component({'hardCodedNullReturn': true, 'key': 1}),
    react.p({}, 'Testing a return value of "false"...'),
    component({'returnValue': false, 'key': 2}),
  ]);

  react_dom.render(content, querySelector('#content'));
}

Fix test for null return value
Fix test for null return value
