diff --git a/example/index.html b/example/index.html new file mode 100644 index 0000000..108a37c --- /dev/null +++ b/example/index.html @@ -0,0 +1,28 @@ + + + +
+ +Demonstrates usages of 'preferredCountries' option, in conjunction with 'excludeCountries'
+<ReactPhoneInput defaultCountry='us' preferredCountries={['us', 'de']} excludeCountries={'in'}/>+
Demonstrates usages of 'preferredCountries' option only
+<ReactPhoneInput defaultCountry='de' preferredCountries={['it']}/>+
Demonstrates usages of onChange event handler
+<ReactPhoneInput onChange={'{this.handleChange}'} />+
You entered: {this.state.phone}
+