/yanze.

Primary LanguageHTML


React Hooks, useReducer with a demo


🧪 Tutorials

What is a Promise?

🥃 Documentations

CSS flexbox

axios

moment.js

express.js

NestJs

📎 Problems & Solutions

In select element we don't have a placeholder attribute but we can add it by using element with disabled, selected and hidden attribute.

<select>
  <option value="" disabled selected hidden>Choose your framework</option>
  <option value="react">React</option>
  <option value="Vue">Vue</option>
  <option value="Angular">Angular</option>
</select>
[{ foo: "hello", bar: 3, baz: true }, { foo: "world", bar: 7 }, { foo: ":)", bar: 0, baz: false }];
React.PropTypes.arrayOf(
  React.PropTypes.shape({
    foo: React.PropTypes.string.isRequired,
    bar: React.PropTypes.number.isRequired,
    baz: React.PropTypes.bool
  })
);