ReactJS para impacientes

Reativa

Está curtindo os conteúdos da Reativa? Quer que a gente te ajude a ser um dev melhor? Deixe seu melhor email aqui.

React JS como usar o Accordion

January 04, 2020

Renders an accordion menu with multiple collapsible content components. Define an component, pass it to the and remove unnecessary nodes…

React JS como usar o Alert

January 04, 2020

Creates an alert component with prop. Define appropriate CSS styles and animations for the component’s elements. Use the hook to create…

React JS como usar o AutoLink

January 04, 2020

Renders a string as plaintext, with URLs converted to appropriate elements. Use and with a regular expression to find URLs in a string…

React JS como usar o Carousel

January 04, 2020

Renders a carousel component. Use the hook to create the state variable and give it a value of (index of the first item). Use an object…

React JS como usar o Collapse

January 04, 2020

Renders a component with collapsible content. Use the hook to create the state variable with an initial value of . Use an object, , to…

React JS como usar o ControlledInput

January 04, 2020

Renders an element with internal state, that uses a callback function to pass its value to the parent component. Use object destructuring…

React JS como usar o CountDown

January 04, 2020

Renders a countdown timer that prints a message when it reaches zero. Use object destructuring to set defaults for the , and props. Use…

React JS como usar o DataList

January 04, 2020

Renders a list of elements from an array of primitives. Use the value of the prop to conditionally render a or list. Use to render every…

React JS como usar o DataTable

January 04, 2020

Renders a table with rows dynamically created from an array of primitives. Render a element with two columns ( and ). Use to render every…

React JS como usar o FileDrop

January 04, 2020

Renders a file drag and drop component for a single file. Create a ref called for this component. Use the hook to create the and…

React JS como usar o LimitedTextarea

January 04, 2020

Renders a textarea component with a character limit. Use the hook to create the state variable and set its value to . Create a method…

React JS como usar o Loader

January 04, 2020

Creates a spinning loader component. Define appropriate CSS styles and animations for the component’s elements. Define the component, which…

React JS como usar o Mailto

January 04, 2020

Renders a link formatted to send an email. Destructure the component’s props, use , and to create a element with an appropriate…

React JS como usar o MappedTable

January 04, 2020

Renders a table with rows dynamically created from an array of objects and a list of property names. Use , , and to produce a array…

React JS como usar o Modal

January 04, 2020

Renders a Modal component, controllable through events. To use the component, import only once and then display it by passing a boolean…

React JS como usar o PasswordRevealer

January 04, 2020

Renders a password input field with a reveal button. Use the hook to create the state variable and set its value to . Use a to wrap both…

React JS como usar o RippleButton

January 04, 2020

Renders a button that animates a ripple effect when clicked. Define some appropriate CSS styles and an animation for the ripple effect. Use…

React JS como usar o Select

January 04, 2020

Renders a element that uses a callback function to pass its value to the parent component. Use object destructuring to set defaults for…

React JS como usar o Slider

January 04, 2020

Renders a slider element that uses a callback function to pass its value to the parent component. Use object destructuring to set defaults…

React JS como usar o StarRating

January 04, 2020

Renders a star rating component. Define a component, called that will render each individual star with the appropriate appearance, based on…

React JS como usar o Tabs

January 04, 2020

Renders a tabbed menu and view component. Define a component, pass it to the and remove unnecessary nodes expect for by identifying the…

React JS como usar o TagInput

January 04, 2020

Renders a tag input field. Define a component and use hook to initialize an array with tags passed as . Use on collected nodes to render…

React JS como usar o TextArea

January 04, 2020

Renders a element that uses a callback function to pass its value to the parent component. Use object destructuring to set defaults for…

React JS como usar o Ticker

January 04, 2020

Renders a ticker component. Use the hook to initialize the state variable to . Define two methods, and , that will periodically increment…

React JS como usar o Toggle

January 04, 2020

Renders a toggle component. Use the to initialize the state variable to . Use an object, , to hold the styles for individual components…

React JS como usar o Tooltip

January 04, 2020

Renders a tooltip component. Use the hook to create the variable and initialize it to . Return a element that contains the that will be…

React JS como usar o TreeView

January 04, 2020

Renders a tree view of a JSON object or array with collapsible content. Use object destructuring to set defaults for certain props. Use the…

React JS como usar o UncontrolledInput

January 04, 2020

Renders an element that uses a callback function to pass its value to the parent component. Use object destructuring to set defaults for…

React JS como usar o useAsync

January 04, 2020

A hook that handles asynchronous calls. Create a custom hook that takes a handler function, . Define a reducer function and an initial state…

React JS como usar o useClickInside

January 04, 2020

A hook that handles the event of clicking inside the wrapped component. Create a custom hook that takes a and a to handle the event. Use…

React JS como usar o useClickOutside

January 04, 2020

A hook that handles the event of clicking outside of the wrapped component. Create a custom hook that takes a and a to handle the event…

React JS como usar o useFetch

January 04, 2020

A hook that implements in a declarative manner. Create a custom hook that takes a and . Use the hook to initialize the and state…

React JS como usar o useInterval

January 04, 2020

A hook that implements in a declarative manner. Create a custom hook that takes a and a . Use the hook to create a for the callback…

React JS como usar o useMediaQuery

January 04, 2020

A hook that returns a value based on a media query. Check if and exist, return if not. Use to match the given , cast its property to a…

React JS como usar o useNavigatorOnLine

January 04, 2020

A hook that returns if the client is online or offline. Create a function, , that uses the web API to get the online status of the client…

React JS como usar o usePrevious

January 04, 2020

A hook that stores the previous state or props. Create a custom hook that takes a . Use the hook to create a for the . Use the hook to…

React JS como usar o useSSR

January 04, 2020

A hook that checks if the code is running on the browser or the server. Create a custom hook that returns an appropriate object. Use , and…

React JS como usar o useTimeout

January 04, 2020

A hook that implements in a declarative manner. Create a custom hook that takes a and a . Use the hook to create a for the callback…