Answers for "? in jsx"

16

what is jsx in react

instead of putting JavaScript into HTML,
JSX allows us to put HTML into JavaScript.
JSX stands for JavaScript XML. 
It is simply a syntax extension of React. 
It allows us to directly write HTML in React.
Posted by: Guest on July-03-2021
8

ternary react

render() {
  const isLoggedIn = this.state.isLoggedIn;
  return (
    <div>
      The user is <b>{isLoggedIn ? 'currently' : 'not'}</b> logged in.    
	</div>
  );
}
Posted by: Guest on July-10-2020
2

jsx react

const element = <h1>Hello World</h1>
Posted by: Guest on June-02-2021

Browse Popular Code Answers by Language