Skip to content

Commit adaec1d

Browse files
committed
-Update App.test.js
-Remove commented code in Form.js
1 parent 063361c commit adaec1d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/App.test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import { render, unmountComponentAtNode } from 'react-dom';
33
import App from './App';
44

5-
it('renders without crashing', () => {
5+
it('Should render w/out crashing', () => {
66
const div = document.createElement('div');
7-
ReactDOM.render(<App />, div);
8-
ReactDOM.unmountComponentAtNode(div);
7+
8+
render(<App />, div);
9+
unmountComponentAtNode(div);
910
});

src/Form.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ function Form() {
1010
};
1111

1212
// Define your validationStateSchema
13-
1413
// Note: validationStateSchema and stateSchema property
1514
// should be the same in-order validation works!
1615
const validationStateSchema = {

src/useForm.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ function useForm(stateSchema, validationSchema = {}, callback) {
6666
[validationSchema]
6767
);
6868

69-
// function handleOnChange(event) {}
70-
7169
const handleOnSubmit = useCallback(
7270
event => {
7371
event.preventDefault();

0 commit comments

Comments
 (0)