Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import React from 'react';
  2. import './helloWorld.css';
  3.  
  4. export const DEFAULT_CLASS = 'hello-world';
  5. export const TEST_CLASS = 'hello-world-test';
  6.  
  7. const HelloWorld = ({additionalClass, children}) => (
  8.  
  9. <p
  10. className={
  11. additionalClass
  12. ? additionalClass
  13. : "hello-world"
  14. }
  15. >
  16. Hello World {children}
  17. </p>
  18. );
  19.  
  20. export default HelloWorld;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement