UNPKG

fk-react-ui-components

Version:

Step 1 : Create a file in [ Seeds / Plants / Trees ] <br> Step 2 : It should export an Object with component name and story Component [Refer other components] <br> Step 3 : Story Component should return a react component <br> Step 3 : Created file should

21 lines (18 loc) 379 B
import React from "react"; import Button from "../Button/Button.js"; class SubmitButton extends React.Component { constructor(props) { super(props); // FOR NOW ITS A WRAPPER FOR STYLES ONLY } render() { return( <div> <Button {...this.props}> {this.props.children} </Button> </div> ) } } export default SubmitButton;