Skip to content
#

reactjs

react logo

React (also known as React.js or ReactJS) is a JavaScript library that makes developing interactive user interfaces simple.

Here are 66,683 public repositories matching this topic...

Oldboyyyy
Oldboyyyy commented Jun 11, 2021

相关平台

微信小程序

小程序基础库: 2.17.0
使用框架: React

复现步骤

下面是我们转 H5 的时候遇到的问题的汇总

view

表现: createAnimation 在 H5 下不生效
原因: animation 属性丢失了, 导致样式不生效
解决方法: 已经提了 PR

Taro.preload

表现: H5 下没法使用, 报没有该方法
原因: taro-h5这个包没有实现该方法
解决方法: 已经提了 [PR]( https://github.com/NervJS

blitz
tafelito
tafelito commented Jun 16, 2021

What is the problem?

when using the prisma client to add a prisma middleware in db/index.ts throws error Uncaught TypeError: prisma.$use is not a function in the browser console.

A workaround now is to check whether is running in the browser or not

Paste all relevant code snippets here:

db/index.ts

const isBrowser = typeof window !== "undefined"

if (!isBrowser) {

Created by Jordan Walke

Released March 2013

Latest release 3 months ago

Repository
facebook/react
Website
reactjs.org
Wikipedia
Wikipedia

Related Topics

angular react-native vue