A Disenchanting table allows the players to take out the enchantment from any item back into the book. Have you ever found an item you don't need with a cool enchantment on it? Or maybe you've had a really powerful enchant on an item you now want to put on the other one. Well, disenchanting the table solves all of these problems.
Credits: Amon28
If your table's UI breaks, switch the setting from the Chest container to the Horse container. Just go to Behavior packs, tap on the one you want to change, and press on the gear.
Make sure to enable all "Experimental gameplay" features in Settings