by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Cheikhany ould Ejiwen
@Ejiwen
i delete the file (registerServiceWorker.js) from my react project ... how can i generate new one ?
Sharon Shmorak
@dsysme
Hi, Is this the place for react newbies to ask dumb questions? I am interested mostly in understanding the underlying Functional Programming tricks.
dadochudy
@dadochudy
i have theme provider inside root index.tsx how could i update the Theme form child
more like child child child
dadochudy
@dadochudy
hi, i need help with local storage i created simple example codesnadbox https://codesandbox.io/s/flamboyant-neumann-hbvgd i have problem with my custom hook thats should use local storage but doesn't update where it is used
Vivek krishna Varma
@vkvarma
Any idea how we can identify based on some simple criteria(element attr, some meta info etc that need to be generic ) the hosted/deployed/running web-app is made of using react.
By looking / inspect / analyze we can say that the application running based on react application partially or fully.
e.g. like every angular app is identified using ng-version attribute ?
Vivek krishna Varma
@vkvarma
one way i found window.REACT_DEVTOOLS_APPEND_COMPONENT_STACK var . looks like this is available only in case of react apps is this the good criteria ?
Vivek krishna Varma
@vkvarma
any updates from anyone ?
hydraw
@kingend00
how can i check user login in route ? Anyone help me :(((
Thai Le Dinh
@thaild_gitlab
@kingend00
it's so difficult :/
Julian Tellez
@juliantellez
tip: type npx typescript-react in your command line to bootstrap a typescript plus react application from scratch :)
hydraw
@kingend00
@thaild_gitlab you say right , very hard :(((
Sukhbold Altangerel
@SukhboldAltangerel
hello guys, can I ask beginner react questions here?
Patrick Sauerborn
@patsa
Hey everybody, does anyone know of any examples where react-starter-kit was implemented in a real project and where the code is open source?
1jmj
@1jmj
Hey, has anyone added Typescript to this project?
Adam
@adamsh25
Hey, how can I config webpack to generate minified files in production? (yarn build --release, using docker "RUN yarn install --production --no-progress")
Adam
@adamsh25
@adamsh25 OK I ran yarn build --release before running docker command and now I can see the files are minified but without the .min extension
r4r4010203
@r4r4010203
I am new to react native .
I followed the below tutorial and got the slider working. https://medium.com/@rossbulat/react-native-carousels-with-horizontal-scroll-views-60b0587a670c
but the problem is when I run in ios simulator I see only one element
so I tried adjusting the container width to 50% in styles.
but not working.
one more thing is in simulator I need to click each item to swipe to left
its not working as normal swipe.
can you let me know how to enable the swipe in the simulator.
I debugged the code but not sure where I need to enable.
but in codesandbox swipe works fine
can you tell me how to fix it.
providing my code snippet and sandbox below
https://codesandbox.io/s/amazing-moore-s5gy3
Rob Lifford
@roblifford_twitter
Anyone free to help me better understand some things about isomorphic-style-loader?
Burak Targaç
@btargac
Hi guys,
trying to load data fetching on the server, how shoul I handle that by configuration? for exeample I want to define an array of actions and dispatch them on server side before returning the HTML response ?
Hamed Sedighi
@herol3oy_gitlab
Hi. anybody knows how can I solve the backgroundImage? https://codesandbox.io/s/staging-resonance-61-61sfo
nitinknolder
@nitinknolder
Hi Everyone, I have one dropdown with 2 options say A and B, and I have one card component page and have JSON which contains 2 objects one for A and another for B can anyone tell me how can I render object for A when user select option A from the dropdown and for B vice versa dynamically?
Burak Targaç
@btargac
Hi @nitinknolder do you have the code on codesandbox or any platform reachable ? Or a repository url? Basically you have to listen change event on the select, then set the state to render corresponding component in the return block of the function component (thinking your component is stateless)
Muhammet Gazi Salık
@mgazisalik
hi
how to disable robots.txt ?
Burak Targaç
@btargac
by meaning disable I understand not to serve that file, is it right?
Anjul
@anjultramp_twitter
setStateFromInput = (event) => {
    const {  searchTerm } = this.state;
    this.setState({searchTerm:event.target.value})
    const products = this.props.productData;

    const oldProducts = [...products]
    const newData =  oldProducts.filter(function(item){
        const term = searchTerm.toUpperCase();
        const itemName = item.name.toUpperCase();
        const sku = item.sku.toUpperCase();
        const category = item.category[1].toUpperCase();

        return (itemName.indexOf(term) > -1 || sku.indexOf(term) > 1 || category.indexOf(term) > 1);

    });

    this.setState({
        products: newData
    })

}
How can I add paste funtionality as well currently its only filtering the when user is typing but I want that it also works on paste the term in Input field.?
daldridge
@daldridge
anybody here have experience using isomorphic-style-loader/withStyles with a class hierarchy (derived extends base, both use withStyles)?
Aditya Gudipati
@Adityagudipati6_twitter
Hi @aaawtest . I am facing an issue with react-horizontal-stepper. Actually issue is, by default react-horizontal-stepper taking 0th index position item from steps object as an active step and remaining as disable steps. So, It needed some external button action to change the active step. But I need to change the active state by click on stepper itself without any help of button. And at the same time styling attributes are not working as expected. Can you please help me on How is it possible?
Burak Targaç
@btargac
hi @Adityagudipati6_twitter, I checked RSK for the react-horizontal-stepper module, but couldn't find anything related to it, if there is a specific gitter chat / slack channel etc. you can find more people with stepper module knowledge imo
Burak Targaç
@btargac
Has anyone made a NavLink component like react router dom library has?
RSK has a Link component in the boilerplate but it doesn't have an activeClassName prop to show it's active or not
I made Link component responding to active path of history but this time SSR generated classname and client side classnames differ
So for both ssr ans client side handling active classnames should be done with universal router's context as I guess
Kolf
@kolf
antd
Burak Targaç
@btargac
Has anyone tried docz to document components ?I have problems with configuration, any suggestion would be appreciated.
isomorphic style loader makes it hard to mock as a wrapped playground component
heatherkovich69
@heatherkovich69
I dii ok t understand
Burak Targaç
@btargac
@daldridge with useStyles hook you can give css files an hierarchy order, the latter overrides the previous rules, but I don't know how to handle it withStyles wrapper
charyorde
@charyorde
Hello everyone
Is there an example of state management in RSK without using redux
Hareem-E-Sahar
@Hareem-E-Sahar
Hi everyone, Can anyone share their perspective on why project issues are discussed here in Gitter instead of under the comments section of the issue report in the GitHub issue tracker?
GASTONE DERECK ALEX
@Gastony
Turn Your Code Into Your Digital Developer Profile & Get Hired Faster!
Join CodersRank Now bit.ly/2NbSVLS And Let Your Work Speak For Itself, CodersRank helps you find your dream job and grow as professional!
bit.ly/2NbSVLS
Nick Anthony
@NicholasAnthony
Can anyone provide me with a rough idea of how to properly fork the apollo-pure branch?
Based on the docs it looks like you need to use the tracking PR here kriasoft/react-starter-kit#1666 Though it make sense, I'm not sure I've ever seen that before. Generally I'll just check out the branch. Wanted to double check that's the best way to go...
Akash
@akashma19
<Route path> not passing props like match and location in child element.. I have to use withRouter
josecao
@josecao
hi all, iam using react-viewer package .. but it isn't support for ssr ..Please help me !!
Vitalii
@innovative-piggy
Hi guys, the react starter kit generated from create-react-app causes crash on heroku. Should I set any buildpack when creating heroku app?
Nipuna Akalana Perera
@akalana
Hi,
I think react-starter-kit is a great project. In my requirement is I used frontend for this and I wish to use laravel for my backend. Is there any way to integrate both two. Thank you.