Archives : July-2018

Ive been trying to do a simple redirect to another component on button click, but for some reason it doesnt work.I want to redirect to ‘/dashboard’ and display AdminServices from login as follows: //index.js ReactDOM.render(<BrowserRouter><App /></BrowserRouter>, document.getElementById(“root”)); //App.js <Switch> <Route path=”/” component={Login} /> <Route path=”/dashboard” component={AdminServices} /> </Switch> //Login.js <Button onClick={this.login} > </Button> login = ..

Read more

I have a web app that I’v designed with material-UI and as you can see below I’m using Button navigation for navigating through my basic landing page components. <div className=”footer”> <BottomNavigation value={value} onChange={this.handleChange} className={classes.root}> <BottomNavigationAction label=”signal” value=”signal” icon={<ShowChart />} className={classes.content}/> <BottomNavigationAction label=”hotlist” value=”hotlist” icon={<HotList />} className={classes.content}/> <BottomNavigationAction label=”analyze” value=”analyze” icon={<PieChart />} className={classes.content}/> <BottomNavigationAction label=”learn” value=”learn” ..

Read more