React

From Food & Medicine Encyclopedia

Revision as of 22:09, 1 June 2024 by Prab (talk | contribs) (CSV import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

JavaScript library for building user interfaces



React (also known as React.js or ReactJS) is an open-source JavaScript library for building user interfaces or UI components. It is maintained by Meta (formerly Facebook) and a community of individual developers and companies. React can be used as a base in the development of single-page or mobile applications. However, React is only concerned with state management and rendering that state to the DOM, so creating React applications usually requires the use of additional libraries for routing, as well as certain client-side functionality.

History[edit]

React was created by Jordan Walke, a software engineer at Facebook. It was first deployed on Facebook's News Feed in 2011 and later on Instagram in 2012. It was open-sourced at JSConf US in May 2013.

Features[edit]

React's main features include:

  • **Declarative**: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.
  • **Component-Based**: Build encapsulated components that manage their own state, then compose them to make complex UIs.
  • **Learn Once, Write Anywhere**: You can develop new features in React without rewriting existing code. React can also render on the server using Node.js, and it can power mobile apps using React Native.

JSX[edit]

React components are typically written using JSX, a syntax extension that allows mixing HTML with JavaScript. JSX is compiled to JavaScript before being executed in the browser.

Virtual DOM[edit]

React uses a virtual DOM to improve performance. The virtual DOM is a programming concept where an ideal, or "virtual", representation of a UI is kept in memory and synced with the "real" DOM by a library such as ReactDOM. This process is called reconciliation.

Ecosystem[edit]

React has a rich ecosystem of libraries and tools, including:

  • **Redux**: A predictable state container for JavaScript apps.
  • **React Router**: A collection of navigational components that compose declaratively with your application.
  • **Next.js**: A React framework for server-side rendering and generating static websites.

See also[edit]

References[edit]

External links[edit]

Template:JavaScript-stub

Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Ad. Transform your health with W8MD Weight Loss, Sleep & MedSpa

W8MD's happy loser(weight)

Tired of being overweight?

Special offer:

Budget GLP-1 weight loss medications

  • Semaglutide starting from $29.99/week and up with insurance for visit of $59.99 and up per week self pay.
  • Tirzepatide starting from $45.00/week and up (dose dependent) or $69.99/week and up self pay

✔ Same-week appointments, evenings & weekends

Learn more:

Advertise on WikiMD


WikiMD Medical Encyclopedia

Medical Disclaimer: WikiMD is for informational purposes only and is not a substitute for professional medical advice. Content may be inaccurate or outdated and should not be used for diagnosis or treatment. Always consult your healthcare provider for medical decisions. Verify information with trusted sources such as CDC.gov and NIH.gov. By using this site, you agree that WikiMD is not liable for any outcomes related to its content. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.