Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- function Maybe ({ value, children }) {
- if (!value)
- return null;
- // Renderizo apenas o fragmento com o conteúdo
- return ( // do componente.
- <>
- {children}
- </>
- );
- }
- export default Maybe;
Add Comment
Please, Sign In to add comment