Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //using react, gotta import it
- import React from 'react';
- //if you want to provide variables to the component, you can add them in here below
- const LoginHelp = ({someProvidedVar}) => {
- //if you need to make local variables they can be here
- const someVariable = 'B'
- //anything in this return statement within the () can be HTML (JSX)
- //here is where u can write the help modal content
- return (<div>
- <p>Here is some content {someVariable} {someProvidedVar}</p>
- </div>);
- }
- //this is what we're exporting, just the above, so if say the login page
- //and the user clicks the help modal, inside the modal the above component gets loaded and displays
- //one of these help modal contents
- export default LoginHelp;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement