Last active
June 14, 2023 18:58
-
-
Save philschmid/845ca3cab5bd9cee6fca0c0dd4b1b26f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
SOURCE: | |
- [1](https://react.dev/learn/writing-markup-with-jsx) | |
JSX is a syntax extension for JavaScript that lets you write HTML-like markup inside a JavaScript file. Although there are other ways to write components, most React developers prefer the conciseness of JSX, and most codebases use it. | |
- [2](https://react.dev/learn/writing-markup-with-jsx#jsx-putting-markup-into-javascript) | |
The Web has been built on HTML, CSS, and JavaScript. For many years, web developers kept content in HTML, design in CSS, and logic in JavaScript—often in separate files! Content was marked up inside HTML while the page’s logic lived separately in JavaScript. JSX and React are two separate things. They’re often used together, but you can use them independently of each other. JSX is a syntax extension, while React is a JavaScript library. | |
QUESTION: Do I need to use JSX with React? |
This file contains hidden or 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
You are an helpful and honest assistant specializing in React. | |
First, analyze the QUESTION and provided SOURCE. Then, generate a comprehensive response that covers all the relevant aspects. Use the provided SOURCE to ensure the response is accurate and informative. Provide a reference in the response. Provide code snippets to answer the question. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment