Open in app
Home
Notifications
Lists
Stories

Write
Xiaomin Zhu
Xiaomin Zhu

Home

About

Published in JavaScript in Plain English

·Pinned

From Music to Web Development — My Path

From being a musician of a symphony orchestra to a web developer. Since I was a child, my parents focused on cultivating my music literacy. My father is a famous musician and my mother is a doctor. Yes, I am also talented, my ears are born with absolute hearing. I…

Musicians

6 min read

From Music to Web Development -My Path
From Music to Web Development -My Path

Published in Geek Culture

·May 6

CSS Trick: horizontal scrolling lists on mobile devices

— a really simple example in a React component Sometimes it is necessary to make a horizontal scrolling effect for a list on mobile devices, which is actually convenient and can be achieved with CSS. For example, you can represent different categories in a horizontal navigation bar, and each category…

CSS

4 min read

CSS Trick: horizontal scrolling lists on mobile devices
CSS Trick: horizontal scrolling lists on mobile devices

Published in Geek Culture

·Apr 1

CSS Trick: Keep items of a card container at the bottom

— write one less line of code for every little more you learn CSS makes me love and hate, on the one hand CSS can make pages prettier, but on the other hand, there is no end to learning and mastering. As a self-taught front-end developer, I’ve spent so much…

CSS

5 min read

CSS Trick: Keep items of a card container at the bottom
CSS Trick: Keep items of a card container at the bottom

Published in Geek Culture

·Mar 1

Update state from child to parent with React Context

— React Context provides a way to pass data through the component tree without having to pass props down manually at every level ☘️ In any application, data is essential. We all know this, in React, state and props are two very important properties and are commonly used, easily explained…

React

6 min read

Update state from child to parent with React Context
Update state from child to parent with React Context

Published in Geek Culture

·Feb 4

Remove extra whitespace caused by line break within a button

— weird word break CSS 👀 Creating a button is a simple matter of giving it a link and adding some text to display on the button, but have you ever encountered a such problem? If the button text is too long and needs to be displayed on two lines…

CSS

4 min read

Remove extra whitespace caused by line break within a button
Remove extra whitespace caused by line break within a button

Published in Enlear Academy

·Jan 21

Create Responsive iframe Embed in a React Way

— Surprisingly, YouTube does not have responsive embed code 🦄, let’s play with CSS — In a project I’m recently working on, some videos are embedded on the website from YouTube, since our website is fully responsive, I also need them to be responsive on desktop or mobile screens. However, when I added the embed code, I noticed that the video iframe had fixed height…

React

3 min read

Create responsive iframe Embed  in a React Way
Create responsive iframe Embed  in a React Way

Published in JavaScript in Plain English

·Jan 16

Use Session Storage to Persist State within a React Component

Data in sessionStorage is cleared when the page session ends. In the project I am working on, I created a tiny React component banner. It contains an icon, some text, some different background colours, and a close button ( 🌱 I will simplify the example below).

React

4 min read

Use Session Storage to Persist State within a React Component
Use Session Storage to Persist State within a React Component

Published in Geek Culture

·Jan 15

Hide and replace sticky element on scrolling in a React way

— Tricky but interesting🍡 In a project I worked on, I faced a very interesting task, there is a sticky button at bottom of a mobile page, the requirement was to obtain an effect like this below: ✨ When the user scroll the page on mobile to a certain position…

React

4 min read

Hide and replace sticky element on scrolling in a React way
Hide and replace sticky element on scrolling in a React way

Published in JavaScript in Plain English

·Jan 15

Create a Pagination in a React Way

How about a nice pagination? 🧚‍♂️ Pagination has always been a very interesting task, in the project I’ve been working on, I created a pagination with three different displays related to pages. 📑 Let me make a brief summary. ✂️ First, each page needs to display 15 different cards, the…

React

4 min read

Create a Pagination in a React Way
Create a Pagination in a React Way

Published in Enlear Academy

·Jan 15

Let’s play with Hyperlinks

Create links to page sections is simple, but what if you have a fixed Header? — Hyperlinks are utilized by a web browser to move from one page to another. However, you can also move to a different area on the same page. ☘️ We can use “Id” selector, it is used in CSS to designate an area that a link should point to, the nice…

React

4 min read

Let’s play with Hyperlinks
Let’s play with Hyperlinks
Xiaomin Zhu

Xiaomin Zhu

JavaScript is my ride or die

Following
  • Marius Bongarts

    Marius Bongarts

  • Brian Odongo

    Brian Odongo

  • Haider Jamal

    Haider Jamal

  • Jonathan Saring

    Jonathan Saring

  • fatfish

    fatfish

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable