reactjs

  1. P

    Webpack JSX cannot resolve relative module through ES6 imports

    I'm setting up webpack for a large already existing React App. Seems to be working fine but some modules causes trouble unless I specifically add the extension to the import //not working import AppRouter from './router'; //working but meh import AppRouter from './router.jsx'; It does not...
  2. I

    Passing Data Between React Classes doesn't work

    I'm trying to pass data between classes and it's not working. The error says: "Cannot read property 'map' of undefined" (I need it to stay a class for a future state). I have tried to use it in a different component (not a Class) and it works. This is my first class: import React, { Component }...
  3. T

    React - Deselecting the checkbox doesn't make div to dissapear

    I'm currently messing around with Reactjs and don't know where exactly my problem lays. I wan't to render an input field if a certain chekbox is selected (requiredRoleResponsible in this case). If i check it first time to true it works fine, but if I deselect it, it won't disappear. Maybe i...
  4. S

    What is the best way to deploy react app in lan only

    what is the best way to deploy a react web app (ex. employee database) on the local area network only? i'm using create-react-app and i'm almost done with the code but after that, i don't know what to do. it was easier to do this in php/mysql with the help of xammp. but i would like to do this...
  5. 1

    Conditional float of <li>

    I am building a chat client and want to float-right if the message is from the active user and then float-left when the message is received from the other end user. I tried adding float:right in my css itself, but when I do that it makes my list items go horizontal instead of vertical...
  6. U

    In Text area onchange value is not populating

    <textarea className="form-control queryheight box_xp" placeholder="Enter Dashboard Content" type="text" onChange={this.dashboardtextchartchange.bind(this)} value={this.state.textdashboard}> </textarea> Onchange function : dashboardtextchartchange(e){ this.setState({textdashboard...
  7. R

    React Input text now being shown

    I'm trying to create a composed input text (joining 4 input components) but i'm not being able. Everything seems to be OK and the only way I Have been able to show the input text is placing it in the render of the main React component (cardform). In the DOM explorer (chrome) the only componet I...
  8. R

    Cách làm tương tự textarea trong div

    Mình sử dụng React để xây dựng một thành phần làm nổi bật văn bản. Để làm điều này, mình có một phần tử textarea và một div trên cùng một level, sao chép giá trị của textarea vào div. Textarea nằm bên trong thành phần TextArea và div nằm bên trong thành phần HighlightedDiv. Mình chỉ phát...
Top