Questions tagged [react-dnd]

React DnD is a set of React higher-order components to help you build complex drag and drop interfaces while keeping your components decoupled.

425 questions
0
votes
1 answer

StaticProptypes in es6/7 React14

static propTypes: { arrayOfLines: PropTypes.arrayOf(PropTypes.number) }; at arrayOf( < at that paren it gives me a syntax error, but looking at the docs it seems like it should be right doing just PropTypes.array seems to work fine too,…
Karan
  • 1,141
  • 2
  • 19
  • 42
-1
votes
1 answer

React dnd - chessboard tutorial example issue

I want to make the knight could move to any square (NOT follow the game rule). So I change the function: canMoveKnight in file Game.js like this: canMoveKnight(toX, toY) { return true; } The result is: the knight CANNOT move at all. But if I…
Kaman Wu
  • 189
  • 10
-1
votes
1 answer

Antd table - conditional dragable row rendering

i have found example of dnd on Ant.design website, but how can I make only certain rows dragable? https://codesandbox.io/s/9uq4r Update: I have tree structure (datasource with children). My goal is to dnd first level children inside parent (0 level…
user3046616
  • 29
  • 1
  • 6
-1
votes
1 answer

Namespace 'React' has no exported member 'ConsumerProps', ProviderProps

I am trying to install this library in visual studio and my react version is 15.0.35. Can I use this library fro this version of react? If not, is there any other library that is compatible with this version? import * as React from 'react'; import {…
Devashree
  • 201
  • 2
  • 4
-2
votes
1 answer

Cannot read property 'lists' of undefined

I am trying to create a web application that mimics trello. I keep getting this error and im not sure how to fix it. The code works fine in another project but not when i try and add it to this new project. ALL dependencies are updated. I am running…
1 2 3
28
29