GithubHelp home page GithubHelp logo

johnpolacek / nextjs-mdx-blog-starter Goto Github PK

View Code? Open in Web Editor NEW
171.0 4.0 70.0 1.05 MB

Next.js MDX Blog Starter for building blogs with Next.js and MDX, including Theme UI Component Design System, Vercel Deployment and more.

Home Page: https://nextjs-mdx-blog-starter.vercel.app

JavaScript 100.00%

nextjs-mdx-blog-starter's Issues

Dark/Light mode

Hi, You should check on the Dark/Light mode, it's bugging, you need to click twice on the button to switch.

Good luck ๐Ÿ‘

Suggestion for the `disabled` prop on the `Button` component

Just a quick suggestion regarding an unnecessary use of a prop.

const Button = (props) => (
  <Btn
    disabled={props.disabled} // <--- this is unecessary
    sx={/**...*/}
    {...props} // <--- `disabled` will get overwritten here anyway
  />
)

You could instead deconstruct disabled, but I don't see the need. You can remove disabled all together, this way it will only appear on the component if passed in as props:

const Button = (props) => (
  <Btn
    sx={/**...*/}
    {...props} // <--- `disabled` will come up here if passed in as props
  />
)

How to upgrade the template to the latest React 18 including other dependencies

Hi there! Being not very good at next.js as well as libs that make up this super-template, i've just tried to upgrade all deps starting with React version. For that purpose used npm-check-updates package, and all it did - i believe - updated package.json.
Didn't work, to all appearances some other modifications in template files are also needed.
Would be much grateful for the update of this repo or short instructions on how to do it for for dummies :))
Please help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.