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 31,027 public repositories matching this topic...

langpavel
langpavel commented Oct 24, 2017

Too wide (and falsy) segregation of GraphQL Types and Resolvers

The first example of this is new ObjectType in src/data/queries/index.js importing fields.
Fields should be taken in context of parent type, not as standalone information.

This can ensure some users that custom types cannot have own field resolvers which is false.

In fact, much of fields which can have own resolvers

daffodil11
daffodil11 commented Nov 21, 2019

Problem

When following the instructions in the README in the redux example project, a crash occurs.

Input

Here's how I'm using normalizr:
clone this repo
run yarn in the root dir
run yarn in the examples/redux dir
run yarn start

Output

Here's what I expect to see when I run the above:
An inquirer prompt.

Here's what I actually see when I run the above:

> no
hannojg
hannojg commented Aug 9, 2019

I have issues to get Reactotron working in my jest react-native test environment.
Before running a test I simply do
jest.mock("reactotron-react-native");, but then I receive an error stating
TypeError: Cannot read property 'useReactNative' of undefined
![Screenshot 2019-08-09 at 18 01 26](https://user-images.githubusercontent.com/16821682/62792504-bd64b080-bacf-11e9-96a8-0d33089332ac.pn

sassanh
sassanh commented Feb 11, 2020

Current behavior:

When I add

declare module '@emotion/react' {
  export {Theme} from 'somewhere';
}

typings for theme prop is correctly set, but whenever type of styled(Element) becomes StyledComponent<any, {}>. If I remove the above declaration, the type of styled(Element) becomes

StyledComponent<Props & etc>

which is correct.

Al

coreui-free-bootstrap-admin-template
redoc
jchook
jchook commented Jul 19, 2019

Even in the Live Demo, if you scroll to the very bottom then expand the "Logout" request details:

image

It may have to do with simple requests (like logout) that do not have a lot of extra information returned by the server.

chakra-ui
mgcrea
mgcrea commented Nov 16, 2017

I've spent some time playing with react-game-kit and did reproduce several examples from the official matter-js repo. The single demo currently commited in the repo is really nice but makes it quite hard to build basic things like gravity demos.

Would be great to have basic shape elements, like a Rectangle, a Circle that can easily be drawn into the dom.

Using SVGs is quite easy, properl

jacobedawson
jacobedawson commented Feb 16, 2020

Not a bug per se, but a clarification seeing that the docs aren't very up-to-date. If you need to set focus on the editor on render (e.g. on first page load), with functional components you can do it like this:

import React, { useRef, useEffect } from "react"
// other stuff

const editorReference = useRef();
useEffect(() => {
  editorReference.current.focusEditor();
}, [editorReferen
reakit
WestonThayer
WestonThayer commented Jul 17, 2019

🚀 Feature request

Motivation

Similar to Reach UI, if the project declares what screen readers and browser combinations are tested, it gives adopters confidence that the components take into account different screen reader quirks to deliver the best UX.

Example

Quote from Reach UI:

Each component is tested with Safari + Voiceover, Firefox + NVDA

simonguo
simonguo commented Jan 20, 2020
import Link from "next/link";

const MyLink = React.forwardRef((props, ref) => {
  const { as, href, ...rest } = props;
  return (
    <Link href={href} as={as}>
      <a ref={ref} {...rest} />
    </Link>
  );
});

function App() {
  return (
    <Nav>
      <Nav.Item componentClass={MyLink}>link</Nav.Item>
    </Nav>
  );
}
FAQ

Created by Jordan Walke

Released March 2013

Latest release 3 days ago

Repository
facebook/react
Website
reactjs.org
Wikipedia
Wikipedia

Related Topics

angular react-native vue
You can’t perform that action at this time.