Skip to content

Instantly share code, notes, and snippets.

@surfer19
Created September 27, 2020 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surfer19/262d117eb15e000138921e6c2286f6cf to your computer and use it in GitHub Desktop.
Save surfer19/262d117eb15e000138921e6c2286f6cf to your computer and use it in GitHub Desktop.
// views/Step1.jsx
import React from "react";
export const Step1 = ({ navigation }) => {
const { next } = navigation;
const submitForm = () => {
next();
};
return (
<>
<h3>Step 1</h3>
<button type="submit" className="btn btn-primary" onClick={submitForm}>
NEXT
</button>
</>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment