@@ -71,14 +71,10 @@ in the `main` entrypoint of your Dart application.
7171` ` ` dart
7272import ' dart:html' ;
7373
74- import ' package:react/react_client.dart' as react_client;
7574import ' package:react/react.dart' ;
7675import ' package:react/react_dom.dart' as react_dom;
7776
7877main () {
79- // This should be called once at the beginning of the application.
80- react_client.setClientConfiguration ();
81-
8278 // Something to render... in this case a simple < div> with no props, and a string as its children.
8379 var component = div({}, " Hello world!" );
8480
@@ -137,16 +133,12 @@ var aButton = button({"onClick": (SyntheticMouseEvent event) => print(event)});
137133
138134 import ' dart:html' ;
139135
140- import ' package:react/react_client.dart' as react_client;
141136 import ' package:react/react.dart' ;
142137 import ' package:react/react_dom.dart' as react_dom;
143138
144139 import ' cool_widget.dart' ;
145140
146141 main() {
147- // This should be called once at the beginning of the application.
148- react_client.setClientConfiguration();
149-
150142 react_dom.render(CoolWidget({}), querySelector(' # react_mount_point'));
151143 }
152144 ` ` `
@@ -173,16 +165,12 @@ var CoolWidget = registerComponent(() => new CoolWidgetComponent());
173165
174166import ' dart:html' ;
175167
176- import ' package:react/react_client.dart' as react_client;
177168import ' package:react/react.dart' ;
178169import ' package:react/react_dom.dart' as react_dom;
179170
180171import ' cool_widget.dart' ;
181172
182173main () {
183- // This should be called once at the beginning of the application.
184- react_client.setClientConfiguration ();
185-
186174 react_dom.render(CoolWidget({" text" : " Something" }), querySelector(' #react_mount_point' ));
187175}
188176` ` `
@@ -225,16 +213,12 @@ class CoolWidgetComponent extends Component2 {
225213
226214import ' dart:html' ;
227215
228- import ' package:react/react_client.dart' as react_client;
229216import ' package:react/react.dart' ;
230217import ' package:react/react_dom.dart' as react_dom;
231218
232219import ' cool_widget.dart' ;
233220
234221void main () {
235- // This should be called once at the beginning of the application.
236- react_client.setClientConfiguration ();
237-
238222 react_dom.render(
239223 myComponent(
240224 headline: " My custom headline" ,
@@ -352,7 +336,6 @@ Here is an example of how to use React React.addons.TestUtils. within a Dart tes
352336```dart
353337import ' package:test/test.dart' ;
354338import ' package:react/react.dart' as react;
355- import ' package:react/react_client.dart' as react_client;
356339import ' package:react/react_dom.dart' as react_dom;
357340import ' package:react/react_test_utils.dart' as react_test_utils;
358341
@@ -372,8 +355,6 @@ class MyTestComponent extends react.Component2 {
372355var myTestComponent = react.registerComponent(() => new MyTestComponent());
373356
374357void main() {
375- react_client.setClientConfiguration();
376-
377358 test(' should click button and set span text to " success" ' , () {
378359 var component = react_test_utils.renderIntoDocument(myTestComponent({}));
379360
0 commit comments