Last active
November 1, 2018 09:01
-
-
Save mrzarkovic/98d78e1de582122edd7bd71c149088f0 to your computer and use it in GitHub Desktop.
New react JSX element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JSX React element | |
var Title = <h1 className="main-title">Naslov</h1>; | |
// Isto kao da smo napisali: | |
var Title = React.createElement( | |
'h1', | |
{className: 'main-title'}, | |
'Naslov' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment