EN VI

What is Reactjs?

React (also known as React.js or ReactJS) is a free and open-source front-end JavaScript library for building user interfaces based on 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, mobile, or server-rendered applications with frameworks like Next.js. 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.
Posts (9)
Questions (44)
2022-05-29 15:59:06
this selectors means when the parent itself is the first child or the last child, in this case, it is both :D this is why it's blue, what you want to do is:const Text = styled.div` color: green;...
Tags: Coding Lập trình React
2022-05-29 15:48:51
You can leave () out if you put everything in one line: {mylist.map((elem, index) => {elem.title})} If you want to return something, but it take several lines, then you have to use ():{mylist.map((el...
Tags: Coding Lập trình React
2024-03-09 23:00:07
Please change your code like this : import { useState } from 'react'; const text = [ "Text1", "Text2", "Text3", "Text4", "Text5" ] export default function Test3() { let [index, setIndex...
Tags: Javascript html css
2024-03-09 23:00:25
Donald Knuth said that premature optimization is the root of all evil. So, first developers' goal is create a code that is easy to read and change. map avoids duplication, and easier to read than for...
2024-03-09 23:00:28
If the add-in needs to open a different page of the task pane you can use the window.location.replace method (or window.location.href) as the last line of the handler. The following example illustrate...
Tags: Reactjs outlook office-js
2024-03-10 00:30:04
Destructuring assignment and importing the plugin directly. import formsPlugin from "@tailwindcss/forms"; import typographyPlugin from "@tailwindcss/typography"; import headlessUITailwindCSSPlugin fro...
2024-03-10 14:30:04
If you are wanting to set a selected user id into the state then these are the changes/additions I'd suggest. Add a new setUserId action to set the currently selected userId Dispatch the setUserId ac...
2024-03-10 16:00:05
You have typed the ThemeProvider component to have no props, but are passing children props when wrapping components. The any type conflicts with the {} that was passed in React.FC. Use the React.Prop...
2024-03-10 21:00:06
I'm looking for a way to render my map in React without having the API key in the frontend You can't, but that's ok. What you do instead if add URL restrictions to your API key
Tags: Reactjs Laravel mapbox
2024-03-10 21:30:05
The HTML tag is only supposed to be used in the element of a HTML web page to define the webpage's title that appears in the tab of the browser. It is not meant for presentational display in the pag...
Tags: css Reactjs tailwind-css

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login