react Flashcards
what are some frontend design principles.
1.) —— This principle is used to create a clear and organized flow of content on a web page.
2.) ——— in design helps users understand how to interact with a website or application.
3.) —– is the practice of designing websites and applications to be usable by people with disabilities.
Visual Hierarchy:
Consistency:
Accessibility:
—— is a powerful front end library, used for creating front end user interfaces
————Open-source run-time environment used to execute Javascript outside of a web browser.
——– is a built in package manager. Like any other package manager, it allows for downloading and installing frameworks/libraries for development.
React
NodeJS
Node Package Manager (npm)
—— is a built-in React object used to contain data or information about the component.
State
are functions in React that allow you to “hook” into React state and lifecycle methods from within functional components.
Hooks
————allows you to store and change state inside of a function component.
—————–allows you to perform some logic at specific points of the applications life
useState
useEffect
based components are simply TSX classes that extend React.Com.
ponent.
Class
Class Components —
The —— is primarily used for initializing data in the component
——– is primarily used for grabbing some data after the page loads
——– allows us to execute code when a component updates its view
lifecycle
constructor
componentDidMount
componentDidUpdate
——— A front end application architectural design pattern designed by Facebook to work better with React’s unidirectional data flow.
it is used to solve the problem of managing state in large-scale single-page web applications.
flux
The Flux architecture consists of four main components:
Dispatcher:
store
Actions
view
——– is the central hub of the Flux architecture. It receives actions from the application and dispatches them to the appropriate stores.
The Dispatcher
——— are responsible for managing the application state and updating the view. Stores are the only components that are allowed to update the state.
Stores
——- are responsible for rendering the user interface and responding to user input. Views listen to changes in the stores and update themselves accordingly.
Views
——- are plain JavaScript objects that represent a user interaction with the application. Actions are dispatched to the Dispatcher, which then sends them to the appropriate stores
Actions
is an implementation of the Flux design pattern for JS/TS applications, used for managing and centralizing application state.
it is used to make asynchronous calls because flux does not work well with async logic flows
Redux
———- is A library of additional support functions that can make using redux easier and conform more to best practices.
——– is The official library for using Redux with React. Installable with npm.
For use with things like useDispatch, useSelector
Redux Toolkit
React-Redux