See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| function i_am_last_but_i_take_1_sec() { | |
| return new Promise((resolve, reject)=>{ | |
| setTimeout(() => { | |
| console.log('i was no: 5 and i take 1 second') | |
| resolve('done') | |
| }, 1000); | |
| }) | |
| } | |
| function i_am_fourth_but_i_take_4_sec() { |
| async function run_handle_errors() { | |
| try { | |
| await i_am_first_but_i_take_10_sec() | |
| await i_am_second_but_i_take_8_sec() | |
| await i_am_third_but_i_take_6_sec() | |
| await i_am_fourth_but_i_take_4_sec() | |
| await i_am_last_but_i_take_1_sec() | |
| console.log("Done") | |
| } catch (error) { | |
| console.log(error) |
| import React from "react"; | |
| import WithName from "./WithName"; | |
| function HelloName({ name }) { | |
| return <div>Hello {name}</div>; | |
| } | |
| export default WithName(HelloName); |