Найденные страницы с тегом react всего 85729

[Solved] How To Pass Props From Redux Store into Apollo GraphQL Query - Local Coder

I'm just getting going with Apollo GraphQL on a simple React Native app and am really impressed by what it can do. But I'm not quite wrapping my head around how it integrates with

[Solved] Array of Objects Apollo Server and post from react - Local Coder

So i'm trying to figure out how to pass an array of objects from a POST request to apollo server on AWS lambda. I've checked this out but it's not the same problem Array of objects

[Solved] Why am I getting a 'no-unused-vars' warning in a for...of loop and how do I fix it? - Local Coder

I'm working on a React app created with Create React App. In every for...of loop, I get this weird 'no-unused-vars' warning pointing to the variable I have instantiated in the for

[Solved] how to scroll to index in deeply hierarchical list in react-virtualized - Local Coder

The List component of react-virtualized offers a property scrollToIndex to enable scrolling to a list item that is currently not visible. The official tree example builds a hierarc

[Solved] Classes with data hydration / dehydration in typescript - Local Coder

I would like to share TS classes or interfaces between a React + TS frontend and node + TS backend. The problem is that TS types are stripped away in compile time, so I cannot use

[Solved] React loading HOC: all the props provided in a list are set to optional and if any of them is undefined shows a spinner instead of the component - Local Coder

I want to make an HOC where I can provide an array of props and check whenever any of them is undefined: if so a Loading component with a spinner is shown instead of the wrapped co

[Solved] HOC - Functional Component - Local Coder

I have already created a HOC in my react app following this, and its working fine. However i was wondering if there is a way to create a HOC as functional component(With or without

[Solved] React Redux use HOC with connected component - Local Coder

I am in the middle of my first React Native project. I would like to create a HOC that deals purely with syncing data from an api. This would then wrap all my other components. If

[Solved] Typescript with React - use HOC on a generic component class - Local Coder

I have a generic React component, say like this one: class Foo<T> extends React.Component<FooProps<T>, FooState> { constructor(props: FooProps<T>) {

[Solved] How does one access state on a nested React component wrapped by an HOC? - Local Coder

I'm using Enzyme, and we can actually use the example component given in the docs as a foundation for my question. Let's assume this <Foo /> component uses a <Link> com

[Solved] React unique key prop - Local Coder

I know there are many answers out there for this issue but I couldn't find one that exactly solved my problem. I am getting the following error : Warning: Each child in an array or

[Solved] How do I update specific rows in Google Spreadsheets using Reactjs? - Local Coder

What needs to happen is that from my React web app there's this form and data inputted should be sent to Google Spreadsheet. Is there away to avoid using Timestamp when inserting

[Solved] How to render nested array elements in React? - Local Coder

I want to render nested array elements. To render elements I used .map but it is not working for second array. Using list=[{value: 'One', list:[{value: 'abc', selected: false},

[Solved] How do I deep clone an object in React? - Local Coder

let oldMessages = Object.assign({}, this.state.messages); // this.state.messages[0].id = 718 console.log(oldMessages[0].id); // Prints 718 oldMessages[0].id = 123; console.log(t

[Solved] Restrict firebase database and storage write access to a specific group - Local Coder

I have a react redux firebase app with a content management side (all those pages start with /admin/...). I need to restrict firebase database and firebase storage write access to

[Solved] Sidebar + Fixed Top Menu in Semantic-UI React - Local Coder

Is it possible to have a Sidebar + Fixed Top Menu in Semantic-UI React?

[Solved] React semantic-ui Dropdown onChange not working - Local Coder

Here's the code: class MenuContainerComponent extends Component { onInputWidgetMenuChange(event, data) { console.log(data); } render() { var inputWidg

[Solved] React : How to Show Message if there is no records - Local Coder

I am working on project in ReactJS, I am fetching data from server through API. I did some search filtration, I want to display message if there is no records available? I am begin

[Solved] custom className semantic ui react - Local Coder

I was hoping to do something like this: <Divider className='homepage-divider' /> But no matter if I add a class name this is all that shows up: <div class='ui divider'&gt

[Solved] Cannot check expect(elm).not.toBeVisible() for semantic-ui react component - Local Coder

I'm trying to test a react component and use expect(elm).not.toBeVisible() without success. Update 3 I have cut down the code into this simpler form: // ./TestItem.js import React

[Solved] How do I use axios within ExpressJS? - Local Coder

I want to be able to use my React app to make a GET request to my server, which is suppose to prompt my server to make an GET request to an external API. I'm using axios and tried

[Solved] Curried function where ES7 property initializers aren't enabled - Local Coder

I have the following arrow function in a so called curried format, taken from this SO answer: const getIntervals = n=> availability=> {} I need to use it in a React componen

[Solved] How to package to 'production' my react website with Webpack? - Local Coder

I managed to use this react-hot-boilerplate configuration script to create and test a simple React Flux webapp. Now that I have a website I like when I run npm start, what would be

[Solved] How to get VSCode to show TypeScript errors for files *not* open in the editor? - Local Coder

In my create-react-app@2.1.8 TypeScript/React app, TS compiler errors are only shown in the Problems pane for files I have open in the VS Code editor. As a result I sometimes don'

[Solved] Issue with publishing to npm - Local Coder

So I am trying to build an Open Source project using react and pushing it to npm. The issue is, my components, while they work great on a test environment - mounted to other compon

Похожие теги: