// @flow

import React from 'react';
import cx from 'classnames';
import styles from './Form.css';

type Props = {
  children: any,
  className?: string
};

function Form({ children, className, ...props }: Props) {
  return (
    <form className={cx(styles.form, className)} {...props}>
      {children}
    </form>
  );
}

export default Form;

// @flow

import React from 'react';
import cx from 'classnames';
import styles from './Form.css';

type Props = {
  children: any,
  className?: string
};

function Form({ children, className, ...props }: Props) {
  return (
    <form className={cx(styles.form, className)} {...props} method="post">
      {children}
    </form>
  );
}

export default Form;

Set form method to post to prevent exposing passwords in the url when JS crashes
Set form method to post to prevent exposing passwords in the url when JS crashes
