Skip to content

Commit

Permalink
Day_13 has been published
Browse files Browse the repository at this point in the history
  • Loading branch information
Asabeneh committed Oct 13, 2020
1 parent 7841890 commit f49f726
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 1,072 deletions.
2 changes: 1 addition & 1 deletion 11_Day_Events/11_events_boilerplate/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 30 Days of React App: Day 3
# 30 Days of React App: Day 11

In the project directory, you can run to start the project

Expand Down
11 changes: 7 additions & 4 deletions 12_Day_Forms/12_forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ The input element has many attributes such as value, name, id, placeholder, type

```js
import React, { Component } from 'react'
import ReactDOM from 'react-dom'

class App extends Component {
// declaring state
// initial state
Expand Down Expand Up @@ -134,7 +136,9 @@ We usually use form to handle use information. Let us move to form section and m
In this section we will develop a small form which collect user information. Our user is a student. We use a parent form element and certain number of input elements to collect user information. In addition to that we will have event listener for the form (onSubmit) and for the inputs (onChange). See the following example try to see the commonts too. You can also check the live [demo](https://codepen.io/Asabeneh/full/eYNvJda).

```js
class App extends React.Component {
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
class App extends Component {
// declaring state
state = {
firstName: '',
Expand Down Expand Up @@ -202,9 +206,7 @@ class App extends React.Component {
/>
</div>

<button onClick={this.changeAnimal} class='btn btn-success'>
Submit
</button>
<button class='btn btn-success'>Submit</button>
</form>
</div>
)
Expand Down Expand Up @@ -683,6 +685,7 @@ class App extends Component {
file,
skills: formattedSkills,
}
// the is the place we connect backend api to send the data to the database
console.log(data)
}

Expand Down
2 changes: 1 addition & 1 deletion 12_Day_Forms/12_forms_boilerplate/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 30 Days of React App: Day 3
# 30 Days of React App: Day 12

In the project directory, you can run to start the project

Expand Down
Loading

0 comments on commit f49f726

Please sign in to comment.