Skip to content

Commit

Permalink
update examples js
Browse files Browse the repository at this point in the history
  • Loading branch information
franleplant committed Nov 21, 2017
1 parent 084a30a commit 37a01d5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 256 deletions.
15 changes: 0 additions & 15 deletions examples/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React, { Component } from 'react';
import Form1 from './Form1'
import Form2 from './Form2'
import GettingStarted from './GettingStarted'


Expand All @@ -20,7 +18,6 @@ const formContainerStyle = {

export default class App extends Component {
render() {
console.log(this.state)
return (
<div style={{maxWidth: '800px', marginRight: 'auto', marginLeft: 'auto'}}>
<div style={rowStyle}>
Expand All @@ -29,18 +26,6 @@ export default class App extends Component {
<GettingStarted/>
</div>
</div>
<div style={rowStyle}>
<div style={formContainerStyle}>
<h3>validate onChange</h3>
<Form1/>
</div>
</div>
<div style={rowStyle}>
<div style={formContainerStyle}>
<h3>validate onSubmit</h3>
<Form2/>
</div>
</div>
</div>
);
}
Expand Down
106 changes: 0 additions & 106 deletions examples/src/Form1.js

This file was deleted.

132 changes: 0 additions & 132 deletions examples/src/Form2.js

This file was deleted.

4 changes: 1 addition & 3 deletions examples/src/GettingStarted.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React, { Component } from 'react';
import Reform from '../../build/index.js';
// In your case you should import it like this:
//import Reform from '@franleplant/reform';
import Reform from '@franleplant/reform';

/*
Reform HTML5 mode example (validate onSubmit)
Expand Down

0 comments on commit 37a01d5

Please sign in to comment.