Skip to content

Commit 6ae18e4

Browse files
Fixing spaces and double quotes
1 parent 44054a9 commit 6ae18e4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/docs/forms.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ Gdybyśmy chcieli sprawić, aby podany wcześniej przykładowy formularz zapisyw
3535
class NameForm extends React.Component {
3636
constructor(props) {
3737
super(props);
38-
this.state = { value: "" };
38+
this.state = {value: ''};
3939
4040
this.handleChange = this.handleChange.bind(this);
4141
this.handleSubmit = this.handleSubmit.bind(this);
4242
}
4343
4444
handleChange(event) {
45-
this.setState({ value: event.target.value });
45+
this.setState({value: event.target.value});
4646
}
4747
4848
handleSubmit(event) {
49-
alert("Podano następujące imię: " + this.state.value);
49+
alert('Podano następujące imię: ' + this.state.value);
5050
event.preventDefault();
5151
}
5252
@@ -97,19 +97,19 @@ class EssayForm extends React.Component {
9797
constructor(props) {
9898
super(props);
9999
this.state = {
100-
value: "Proszę napisać wypracowanie o swoim ulubionym elemencie DOM"
100+
value: 'Proszę napisać wypracowanie o swoim ulubionym elemencie DOM'
101101
};
102102
103103
this.handleChange = this.handleChange.bind(this);
104104
this.handleSubmit = this.handleSubmit.bind(this);
105105
}
106106
107107
handleChange(event) {
108-
this.setState({ value: event.target.value });
108+
this.setState({value: event.target.value});
109109
}
110110
111111
handleSubmit(event) {
112-
alert("Wysłano następujące wypracowanie: " + this.state.value);
112+
alert('Wysłano następujące wypracowanie: ' + this.state.value);
113113
event.preventDefault();
114114
}
115115
@@ -148,18 +148,18 @@ Zwróć uwagę na atrybut `selected`, który sprawia, że domyślnie wybraną op
148148
class FlavorForm extends React.Component {
149149
constructor(props) {
150150
super(props);
151-
this.state = { value: "orzechKoko" };
151+
this.state = {value: "orzechKoko"};
152152
153153
this.handleChange = this.handleChange.bind(this);
154154
this.handleSubmit = this.handleSubmit.bind(this);
155155
}
156156
157157
handleChange(event) {
158-
this.setState({ value: event.target.value });
158+
this.setState({value: event.target.value});
159159
}
160160
161161
handleSubmit(event) {
162-
alert("Twój ulubiony smak to: " + this.state.value);
162+
alert('Twój ulubiony smak to: ' + this.state.value);
163163
event.preventDefault();
164164
}
165165

0 commit comments

Comments
 (0)