[Any suggestions or improvement on this small humble endaevour is welcome. Willing to learn and grow here, as we all are😊]
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.(the only tested mode) Open http://localhost:3020 to view it in your browser.
The page will reload when you make changes. You may also see any lint errors in the console.
Associated article [link]
Use navbar to navigate to the associated demo page.
Simple block loading effect within the screen. The blocks far above and far below the view will stay faded out(via opacity transition from 1 to 0) and will have their opacity restored when they come in view.
- Lazy loading elements when they come in view(eg: images, posts, etc)
- Lazy loading imports when they come in view
- Data grabbing
- Auto-play and auto-pause videos when they come in view
Others might be there but I couldn't think of any. As and when I continue by dev journey, I'll know more and hence I'll add more.
This observer will only allow ciel(viewport-width/image_width) number of images to display at a time. Simple.
- Any one of the
essential's should be selected or else observer will not work - The actual config being used is on display at the bottom of the page
CharacterData- Parent list text can be editted if
CharacterDatais selected - To view mutation events
Subtreeshould be selected. SinceCharacterDataonly monitors root level text by default. - Select
CharacterDataOldValueto see old value of text before mutation - Ignore the following warning for now. It's just a demo after all.
Warning: A component is `contentEditable` and contains `children` managed by React.- Parent list text can be editted if
ChildDataSubtreeselection does what it does. Allows us to monitor child list elements- By default only monitors parent list elements
Attributes- Allows monitoring of three attributes
data-greendata-bluedata-red
- Select via element above Add/Remove entry button
- Colors will only show after first selection and if
Attributesis selected - Monitoring will only happen if both
AttributesandSubtreeare selected. SinceAttributesonly monitors root level attributes by default - Select
AttributeOldValueto see old value of attributes inentrybefore mutation AttributeFilteris to be used to monitor only specific attributes. The list is comma separated. (eg:data-green, data-blue). The space after comma is required.
- Allows monitoring of three attributes
- Four level hierarchy is present
Alphaelement is where reducer, context and state is definedParentelement is where count is shown. Data is fetched viauseContexthookChildelement is where count is incremented via a button.Reducerdispatch is fetched viauseContexthookSubChildelement is where count is decremented via a button.Reducerdispatch is fetched viauseContexthook