Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //using react, gotta import it
  2. import React from 'react';
  3.  
  4. //if you want to provide variables to the component, you can add them in here below
  5. const LoginHelp = ({someProvidedVar}) => {
  6.     //if you need to make local variables they can be here
  7.     const someVariable = 'B'
  8.     //anything in this return statement within the () can be HTML (JSX)
  9.     //here is where u can write the help modal content
  10.       return (<div>
  11.           <p>Here is some content {someVariable} {someProvidedVar}</p>
  12.       </div>);
  13. }
  14.  
  15. //this is what we're exporting, just the above, so if say the login page
  16. //and the user clicks the help modal, inside the modal the above component gets loaded and displays
  17. //one of these help modal contents
  18. export default LoginHelp;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement