Follow below steps to redirect you non-http site to https without using .htaccess Change Configuration: go to application/config/config.php and enable hooks to true $config['enable_hooks'] = TRUE; Create new file hooks.php if not exist other wise open file and paste code $hook['post_controller_constructor'][] = array( 'function' => 'redirect_ssl', 'filename' => 'ssl.php', 'filepath' => 'hooks' ); Now create a new folder hooks if ...
In React " react-router-dom" v6 , " Switch " is replaced by routes " Routes ". So, you need to update the import from import { Switch, Route } from "react-router-dom"; to import { Routes, Route } from 'react-router-dom';
Sometimes we face a problem to display multiline string in separate line instead of online while rendering ReactJs view. Here are the solution: Add a new class in css file .multi-line-break { white-space: pre-line; } Add css class with you div or p tag render() { const textString = 'First Line \n Second Line \n Third Line'; return ( <div className="multi-line-break"> {textString} </div> ); } You will get output like this: First Line Second Line Third Line
Comments
Post a Comment