-
Prohibit browser back or warn when reloading or closing tabs
When you are creating a form or something similar, there are times when you don't want the user to browser back, reload, or do anything else. The reason for this is that before the data you enter is saved, it will be lost by browser back... -
TypeError: _this.props.onChangePage is not a function
When I click on the pagination of material-table, I get the following error. Unhandled Runtime Error TypeError: _this.props.onChangePage is not a function The environment in which this error occurs is as follows. material-ui v4.12.2 v5 a... -
TypeError: _this.props.onChangePage is not a function
material-tableのページネーションをクリックすると以下のエラーが出るようになりました。 Unhandled Runtime Error TypeError: _this.props.onChangePage is not a function このエラーが発生する環境は以下の通りです。 material-ui v4.12.2 v5以降mater... -
Next.jsとMaterial-UIのLinkを併用する方法
Next.jsのLinkとMaterial-UIのLinkは通常併用できません。しかし、ちょっとした工夫でこれらを併用できます。 Next.jsとMaterial-UIのLinkを用いて作るリンクのコンポーネントの要件は次のとおりです。 リンクができるNext.jsのLinkが機能するMaterial-UI... -
Next.jsでmaterial-tableを使う
Next.jsとmaterial-tableはとても使い勝手がいいので僕はよく使います。しかし、これらは相性が悪く、Next.jsでmaterial-tableは素直に動いてくれません。 Next.jsでmaterial-tableを使用するにはハマりポイントがあり、以下のエラーが出ます。 TypeError:... -
[javascript][jQuery]オブジェクトをURLパラメータに変換
urlパラメータにしたいキーと値を以下のようにまとめて、URLパラメータに変換したいときが度々あるので、オブジェクトをURLパラメータに変換する方法をまとめます。 var paramObj = { param1: 'hoge', param2: 'foo', param3: 'bar... -
[Gatsby.js]Error: Command failed with exit code 1: npm install
Gatsby.jsでスターターを用いて新規プロジェクトを作成する時に、以下のエラーが出たのでこのエラーの原因と解消方法をご紹介します。 $ gatsby new my-gatsby-project https://github.com/gatsbyjs/gatsby-starter-default info Creating new site from g... -
複雑なCSSを簡単に生成できるCSSジェネレーターWebサービス
モダンなWEBサイトを作っているとどうしても凝ったCSSでコンテンツを表現する必要が出てきます。複雑で凝ったCSSは開発に時間がかかってしまいます。 複雑なCSSはCSSジェネレーターで生成すると、簡単操作でCSSを生成できます。また、ビジュアルで微調整や... -
ブラウザバック禁止やリロード、タブを閉じる時に警告をする
フォームなどを作っている時に、ユーザーにブラウザバックやリロードなどの操作をしてほしくないときがあります。 その理由は入力したデータが保存される前で、ブラウザバックやリロードなどによってデータが消えてしまうからです。 この記事ではreactでブ... -
error: failed to push some refs to ‘REMOTE URL’
This error is encountered when pushing to a remote repository. $ git push -u origin main error: src refspec main does not match any error: failed to push some refs to 'REMOTE URL' Or you may get an error message like the followin...