What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-27 09:28:02
react bootstrap navbar not working
import React from 'react'; import { Nav, NavLink, Bars, NavMenu, NavBtn, NavBtnLink, } from './NavbarElements'; const Navbar = () => { return ( <> <Nav> <Bars /> <NavMenu> <NavLink to='/about' activeStyle> Abo... Add solution -
PHP 2021-09-26 11:36:04
veue laravel remove #/
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) let router = new Router({ mode: 'history', //removes # (hashtag) from url base: '/', fallback: true, //router should fallback to hash (#) mode when the browser does not su... Add solution -
CSS 2021-09-26 11:31:06
css transition styled components
import React, { Component } from "react"; import ReactDOM from "react-dom"; import { CSSTransition } from "react-transition-group"; import styled from "styled-components"; const Box = styled.div` width: 300px; ... Add solution -
Javascript 2021-09-26 05:55:03
adding a prototype on vue using nuxt
// create in plugins/hello export default ({ app }, inject) => { // Inject $hello(msg) in Vue, context and store. inject('hello', msg => console.log(`Hello ${msg}!`)) } // add in nuxt.config.js export default { plugins: ['~/plugins/hello.js'] } Add solution -
Javascript 2021-09-25 20:54:05
casl react redux
import { AbilityBuilder } from 'casl' function subjectName(item) { if (!item || typeof item === 'string') { return item } return item.__type } export default AbilityBuilder.define({ subjectName }, can => { can(['read', 'create'], 'Tod... Add solution -
Javascript 2021-09-25 07:55:04
navbar with logo react
import React from 'react' import { BrowserRouter as Router, Switch, Route, useParams, } from "react-router-dom"; import { Navbar,Nav,NavDropdown,Form,FormControl,Button } from 'react-bootstrap' import Home from './Home'; ... Add solution
Best helpers
Ranking is empty