Archives : September-2016

Is there any possibility to create a hash link in React JS? A have for example something like this : <div className=”nav”> <Link to=””>Home</Link> <Link to=”#services”>Services</Link> <Link to=”#contact”>Contact</Link> </div> And if user clicks on services I want that he goes to the section of the page with the id services. Any advice? UPDATE App component ..

Read more

I am trying to build and run react native application in my phone. I tried with Getting Started and it’s working fine. I do the following to run cd AwesomeProject react-native start Open a new tab in terminal curl “http://localhost:8081/index.android.bundle?platform=android” -o “android/app/src/main/assets/index.android.bundle” react-native run-android and it runs in my android phone. Now I am trying ..

Read more

I want to add my react-router links to Drawer. I tried this: <Drawer width={200} open={this.state.drawerOpen} docked={false} onRequestChange={this.toggleDrawer}> <Link to=”/businesspartners”> <MenuItem onTouchTap={this.toggleDrawer.bind(this, false)} rightIcon={<CommunicationBusiness />} > Business Partners </MenuItem> </Link> </Drawer> My problem is that the link will render underlined (like the image below). Source: React Router..

Read more

I’m using Material-ui’s Tabs, which are controlled and I’m using them for (React-router) Links like this: <Tab value={0} label=”dashboard” containerElement={<Link to=”/dashboard/home”/>}/> <Tab value={1} label=”users” containerElement={<Link to=”/dashboard/users”/>} /> <Tab value={2} label=”data” containerElement={<Link to=”/dashboard/data”/>} /> If I’m currenlty visting dashboard/data and I click browser’s back button I go (for example) to dashboard/users but the highlighted Tab still ..

Read more