Wednesday, 1 February 2017

ReactJS Real time Interview Questions

Rewrite this without using JSX:
<div className='ui items'>
Hello, friend! I am a basic React component.
</div>
Ans: 
React.createElement('div', {className: 'ui items'},
React.createElement('p', null, 'Hello, friend! I am a basic React component.')
)

WHAT OTHERS ARE READING/RELATED TO THIS:

0 comments:

Post a Comment