Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/browser/server/__tests__/ReactServerRendering-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('ReactServerRendering', function() {
ID_ATTRIBUTE_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
});

describe('renderComponentToString', function() {
describe('renderToString', function() {
it('should generate simple markup', function() {
var response = ReactServerRendering.renderToString(
<span>hello world</span>
Expand Down Expand Up @@ -244,7 +244,7 @@ describe('ReactServerRendering', function() {
});
});

describe('renderComponentToStaticMarkup', function() {
describe('renderToStaticMarkup', function() {
it('should not put checksum and React ID on components', function() {
var lifecycle = [];
var NestedComponent = React.createClass({
Expand Down
4 changes: 2 additions & 2 deletions src/browser/ui/ReactMount.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ var ReactMount = {
render: function(nextElement, container, callback) {
invariant(
ReactElement.isValidElement(nextElement),
'renderComponent(): Invalid component element.%s',
'React.render(): Invalid component element.%s',
(
typeof nextElement === 'string' ?
' Instead of passing an element string, make sure to instantiate ' +
Expand Down Expand Up @@ -756,7 +756,7 @@ var ReactMount = {
'You\'re trying to render a component to the document but ' +
'you didn\'t use server rendering. We can\'t do this ' +
'without using server rendering due to cross-browser quirks. ' +
'See renderComponentToString() for server rendering.'
'See React.renderToString() for server rendering.'
);

setInnerHTML(container, markup);
Expand Down
4 changes: 2 additions & 2 deletions src/browser/ui/__tests__/ReactMount-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('ReactMount', function() {
expect(function() {
ReactTestUtils.renderIntoDocument('div');
}).toThrow(
'Invariant Violation: renderComponent(): Invalid component element. ' +
'Invariant Violation: React.render(): Invalid component element. ' +
'Instead of passing an element string, make sure to instantiate it ' +
'by passing it to React.createElement.'
);
Expand All @@ -61,7 +61,7 @@ describe('ReactMount', function() {
expect(function() {
ReactTestUtils.renderIntoDocument(Component);
}).toThrow(
'Invariant Violation: renderComponent(): Invalid component element. ' +
'Invariant Violation: React.render(): Invalid component element. ' +
'Instead of passing a component class, make sure to instantiate it ' +
'by passing it to React.createElement.'
);
Expand Down
2 changes: 1 addition & 1 deletion src/browser/ui/__tests__/ReactRenderDocument-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ describe('rendering React components at document', function() {
'Invariant Violation: You\'re trying to render a component to the ' +
'document but you didn\'t use server rendering. We can\'t do this ' +
'without using server rendering due to cross-browser quirks. See ' +
'renderComponentToString() for server rendering.'
'React.renderToString() for server rendering.'
);
});

Expand Down
2 changes: 1 addition & 1 deletion src/browser/ui/dom/Danger.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ var Danger = {
'dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the ' +
'<html> node. This is because browser quirks make this unreliable ' +
'and/or slow. If you want to render to the root you must use ' +
'server rendering. See renderComponentToString().'
'server rendering. See React.renderToString().'
);

var newChild = createNodesFromMarkup(markup, emptyFunction)[0];
Expand Down
4 changes: 2 additions & 2 deletions src/core/ReactComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ var ReactComponent = {

/**
* Get the publicly accessible representation of this component - i.e. what
* is exposed by refs and renderComponent. Can be null for stateless
* components.
* is exposed by refs and returned by React.render. Can be null for
* stateless components.
*
* @return {?ReactComponent} the actual sibling Component.
* @internal
Expand Down
4 changes: 2 additions & 2 deletions src/core/ReactCompositeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ var ReactCompositeComponentMixin = assign({},
propTypes[propName](props, propName, componentName, location);
if (error instanceof Error) {
// We may want to extend this logic for similar errors in
// renderComponent calls, so I'm abstracting it away into
// React.render calls, so I'm abstracting it away into
// a function to minimize refactoring in the future
var addendum = getDeclarationErrorAddendum(this);
warning(false, error.message + addendum);
Expand Down Expand Up @@ -864,7 +864,7 @@ var ReactCompositeComponentMixin = assign({},

/**
* Get the publicly accessible representation of this component - i.e. what
* is exposed by refs and renderComponent. Can be null for stateless
* is exposed by refs and returned by React.render. Can be null for stateless
* components.
*
* @return {ReactComponent} the public component instance.
Expand Down
2 changes: 1 addition & 1 deletion src/core/ReactElementValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function warnAndMonitorForKeyUse(warningID, message, element, parentType) {

message += ownerName ?
` Check the render method of ${ownerName}.` :
` Check the renderComponent call using <${parentName}>.`;
` Check the React.render call using <${parentName}>.`;

// Usually the current owner is the offender, but if it accepts children as a
// property, it may be the creator of the child that's responsible for
Expand Down
2 changes: 1 addition & 1 deletion src/core/__tests__/ReactEmptyComponent-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ describe('ReactEmptyComponent', function() {
expect(function() {
React.render(null, div);
}).toThrow(
'Invariant Violation: renderComponent(): Invalid component element.'
'Invariant Violation: React.render(): Invalid component element.'
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/core/__tests__/ReactUpdates-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ describe('ReactUpdates', function() {
componentDidMount: function() {
instances.push(this);
if (this.props.depth < this.props.count) {
React.renderComponent(
React.render(
<MockComponent
depth={this.props.depth + 1}
count={this.props.count}
Expand Down