composable component context react

React 精简代码指南(译)

React 精简代码指南(译) 大家的林语冰 ​ bilibili@人猫神话 | 公众号@人猫神话 ​关注他 你经常看 TA 的内容 ​ 展开目录 大家好,这里是大家的林语冰。本期《前端翻译计划》共享的是使用最佳实践和已验证技术增强您的 React 开发。 免责声明本文属于是语冰的直男翻译了属于是, ......
代码 指南 React

React拖拽插件:react-beautiful-dnd

本篇文章主要介绍react-beautiful-dnd,它是基于react的拖拽插件 接下来会从以下几个方面来介绍react-beautiful-dnd 安装使用 API介绍 Example 1. 安装使用 首先我们需要安装react-beautiful-dnd # yarn yarn add re ......

Reducer的理解--React状态管理Reducer

这篇博客主要从以下几个方面来介绍我对Reducer的理解 什么是 Reducer 函数 useState 重构成 useReducer 使用Reducer的业务场景 1. 什么是 Reducer 函数 对于组件过于分散的事件处理程序,可以将组件的所有状态更新整合到一个外部函数中,这个函数被称为 re ......
Reducer 状态 React

Context Prior for Scene Segmentation带上下文先验的分割

Context Prior for Scene Segmentation * Authors: [[Changqian Yu]], [[Jingbo Wang]], [[Changxin Gao]], [[Gang Yu]], [[Chunhua Shen]], [[Nong Sang]] DOI: ......
先验 下文 Segmentation Context Prior

Adaptive Sparse Convolutional Networks with Global Context Enhancement for Faster Object Detection on Drone Images

Adaptive Sparse Convolutional Networks with Global Context Enhancement for Faster Object Detection on Drone Images * Authors: [[Bowei Du]], [[Yecheng ......

用DE10_NANO_SOC_FB生成dts的时候 提示Component alt_vip_itc_0 of class alt_vip_itc is unknown

当使用DE10_NANO_SOC_FB工程产生dts时提示 Component alt_vip_itc_0 of class alt_vip_itc is unknown: 如果此时生成了dtb, 可以忽略这个提示。 如果没有生成,您可以先在Qsys 中把这两个器件disable 掉, 然后top文 ......
alt_vip_itc NANO_SOC_FB Component alt vip

Kubernetes - Components

......
Kubernetes Components

GCGP:Global Context and Geometric Priors for Effective Non-Local Self-Attention加入了上下文信息和几何先验的注意力

Global Context and Geometric Priors for Effective Non-Local Self-Attention * Authors: [[Woo S]] 初读印象 comment:: (GCGP)提出了一个新的关系推理模块,它包含了一个上下文化的对角矩阵和二维相 ......

React useEffect 在组件挂载时运行了两次

在使用 useEffect 这个 hook 时,发现useEffect会执行2次 useEffect(() => { console.log("执行 useEffect"); }, []); 控制台输出: 执行 useEffect 执行 useEffect 查看 疑难解答 官方文档,官方解释如下: ......
组件 useEffect React

使用React+SpringBoot开发一个协同编辑的表格文档

前言 随着云计算和团队协作的兴起,协同编辑成为了许多企业和组织中必不可少的需求。通过协同编辑,多个用户可以同时对同一个文档进行编辑和更新,从而提高工作效率和协作能力。本文小编就将为大家介绍如何使用React+SpringBoot简单的开发一个协同编辑的表格文档。 环境准备 用到的开发工具: 前端开发 ......
SpringBoot 表格 文档 React

Docker Compose 快速搭建 Redis 单机版

Redis 是非常流行的缓存中间件,其具有功能强大和部署简单的优势,我们在 CentOS 上使用 yum 就能够在线安装 Redis。之所以要介绍使用 Docker 进行容器化部署 Redis ,主要原因是当前容器化部署是主流,而且能够保障服务器文件系统的整洁。 本篇博客主要介绍如何使用 docke ......
单机版 单机 Compose Docker Redis

react常用hooks

useMount const useMount = (callback) => { React.useEffect(callback, []) } useUnmounted 1 const useUnmount = (callback) => { 2 const callbackRef = Reac ......
常用 react hooks

关于 expo 和 React Native

expo 官网 https://expo.dev/ https://github.com/expo/expo 用于简便移动端开发 快速创建项目 npx create-expo-app my-app . ├── App.js ├── app.json ├── assets ├── babel.conf ......
Native React expo

React Native UI Thread && Main Thread

UI Thread 负责用户界面的主要线程,用于处理用户界面的渲染、交互和更新。 如果在 UI 线程上执行耗时的操作,可能会导致界面卡顿,用户体验下降。 Main Thread 应用程序的主要执行线程,负责处理应用程序的主要逻辑、启动和管理应用。 在 React Native 中,UI 线程和主线程 ......
Thread amp Native React Main

React Native FlatList 的 refreshControl 属性

用于下拉刷新,example => https://github.com/zjy4fun/rn-FlatList-refreshControl import React, {useEffect, useState} from 'react'; import {FlatList, RefreshCon ......
refreshControl FlatList 属性 Native React

React Native View 组件的 onLayout 回调函数

View 的布局发生改变的时候会触发 onLayout 函数,可以在布局发生变化的时候执行一些自定义操作,或者动态调整 UI 元素的样式和布局。 import React, { Component } from 'react'; import { View, Text } from 'react-n ......
函数 组件 onLayout Native React

React 随记

React 没有响应式的概念 useState 的两个功能 提供更新函数 缓存变量 数组或对象必须整体更新 immutable mutable 两个优点useRef 的更新函数不会导致视图刷新 普通变量也可以在视图中显示 但是不会被监听状态的定义需要反向排除考虑 并不是所有视图的需要的数据就定义为状 ......
随记 React

Docker Compose: depends_on

depends_on depends_on expresses startup and shutdown dependencies between services. Short syntax The short syntax variant only specifies service names ......
depends_on Compose depends Docker on

React报错:Warning: Invalid hook call. Hooks can only called inside of the body of a function component. This could happen for one of the following reasons: .......

报错截图: 问题可能原因: 我之前是用 npm install,后面有些依赖用的是 cnpm install 解决方法: 用统一的安装方式 删除 node_modules,重新执行 cnpm install 我这里解决问题 ......
component following the function of

docker-compose up -d 运行容器秒自动停止解决方案

正常的我们运行Docker-Compose的服务 docker-compose -f docker-compose.yml up -d mysql-setup 执行Docker ps 查看存活的容器 Docker PS发现没失败但是未找到存活的容器 查看日志 docker logs mysql-se ......

docker-compose 一键部署

3.3.DockerCompose 大家可以看到,我们部署一个简单的java项目,其中包含3个容器: MySQL Nginx Java项目 而稍微复杂的项目,其中还会有各种各样的其它中间件,需要部署的东西远不止3个。如果还像之前那样手动的逐一部署,就太麻烦了。 而Docker Compose就可以帮 ......
docker-compose compose docker

react 中国地图

import React, { useEffect, useState, useRef } from "react"; import * as echarts from 'echarts/core' import ReactEchartsCore from 'echarts-for-react/li ......
中国地图 地图 react

react使用antd Table单元格中文字超出时省略

实现效果 使用antd中的Table,设置固定列宽,当文字超出时省略,先看实现效果: 部分代码 使用ellipsis进行省略,使用Tooltip(引入自antd)展示全部的内容。 const TABLE_COL_WIDTH = 200; const columns = [ { title: '项目名 ......
单元 文字 react Table antd

Docker Compose 使用

Docker Compose 使用 Compose 简介 Compose 是用于定义和运行多容器 Docker 应用程序的工具。通过 Compose,您可以使用 YML 文件来配置应用程序需要的所有服务。然后,使用一个命令,就可以从 YML 文件配置中创建并启动所有服务。 使用 # yaml 配置 ......
Compose Docker

spring xml配置文件之context:annotation-config

我们一般在含有Spring的项目中,可能会看到配置项中包含这个配置节点context:annotation-config。 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/sche ......

react+antd 需求demo实现

BoxSelectionComponent.tsx import React, { useState } from 'react'; import { Modal, Button, Table, message } from 'antd'; const BoxSelectionComponent: ......
需求 react antd demo

React Native package.json 控制App的版本号

原文:https://blog.csdn.net/gu1920948999/article/details/117984844 package.json "version": "1.0.0", android配置 android/app/build.gradle import groovy.json ......
package 版本 Native React json

react-native解决ios无法请求http问题

添加如下行信息: ......
react-native native 问题 react http

react-native 在ios中使用react-native-vector-icons图标

github 地址:https://github.com/oblador/react-native-vector-icons 1.引入 npm install --save react-native-vector-icons ios项目引入 进入node_modules/react-native-v ......
共1560篇  :4/52页 首页上一页4下一页尾页